For proper seeking, they should be set correctly though.
Originally committed as revision 17907 to svn://svn.ffmpeg.org/ffmpeg/trunk
ret = av_new_packet(pkt, copyhdrsize + size);
if (ret < 0)
return ret;
+ // HACK: we have no idea if it is a keyframe,
+ // but if we mark none seeking will not work at all.
+ pkt->flags |= PKT_FLAG_KEY;
pkt->pos = pos;
pkt->pts = AV_RL32(&hdr[4]);
pkt->stream_index = ctx->v_id;
break;
}
ret = av_get_packet(pb, pkt, size);
+ pkt->flags |= PKT_FLAG_KEY;
pkt->pos = pos;
pkt->pts = AV_RL32(&hdr[4]);
pkt->stream_index = ctx->a_id;