Fixes avconv video stream copy of bethsoft video, which was skipping all
video frames unless the copyinkf option was used.
pkt->pos = position;
pkt->stream_index = 0; // use the video decoder, which was initialized as the first stream
pkt->pts = vid->video_pts;
+ if (block_type == VIDEO_I_FRAME)
+ pkt->flags |= AV_PKT_FLAG_KEY;
/* if there is a new palette available, add it to packet side data */
if (vid->palette) {
return AVERROR(EIO);
}
pkt->stream_index = 1;
+ pkt->flags |= AV_PKT_FLAG_KEY;
return 0;
case VIDEO_P_FRAME: