[FFmpeg-cvslog] mxfenc: always assume long gop

Anton Khirnov git at videolan.org
Thu Dec 17 14:52:08 CET 2015


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Nov 15 10:41:02 2014 +0100| [b8b21dee0f0b4bcc1888067c497d6e838859d2cd] | committer: Anton Khirnov

mxfenc: always assume long gop

Checking the codec context parameters to find out this information is
far too unreliable to be useful, so it is safer to assume B-frames are
always present.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b8b21dee0f0b4bcc1888067c497d6e838859d2cd
---

 libavformat/mxfenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 0f4155a..3a3008b 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -1295,7 +1295,7 @@ static const UID mxf_mpeg2_codec_uls[] = {
 
 static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx)
 {
-    int long_gop = avctx->gop_size > 1 || avctx->has_b_frames;
+    int long_gop = 1;
 
     if (avctx->profile == 4) { // Main
         if (avctx->level == 8) // Main



More information about the ffmpeg-cvslog mailing list