Skip to content

avaudenc/avvidenc: Reopen encoding session if it's required

Seungha Yang requested to merge seungha.yang/gst-libav:avenc-reopen into master

Since the commit https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/22b25b3ea5c, ffmpeg will not clear draning flag for encoder by avcodec_flush_buffers() API by default. Allowed case is only if encoder has AV_CODEC_CAP_ENCODER_FLUSH capability flag. If it's not supported, we should re-open encoding session, otherwise ffmpeg encoder will keep returning AVERROR_EOF

Merge request reports