Jan Pohanka <xhpohanka@...> writes: > if (enc_buf->flags & BUF_IFRAME) > pkt.flags |= AV_PKT_FLAG_KEY; > > I was setting BUF_IFRAME flag sometimes also for P frames. After fixing it > just to IDR frames everything is ok. I expect that AV_PKT_FLAG_KEY should > be set only for IDR frames and not for I frames in h264, is that true?
If your stream contains non-I-frames that use reference frames before the last I-frame and you set the flag as explained above, you should see artefacts on decoding after seeking. Carl Eugen _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
