[FFmpeg-cvslog] mpeg12enc: always write closed gops for intra only outputs
Marton Balint
git at videolan.org
Fri Mar 4 17:17:42 CET 2016
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Mon Dec 8 14:27:03 2014 +0000| [5e555f93009f0605db120eec78262d0fe337e645] | committer: Vittorio Giovara
mpeg12enc: always write closed gops for intra only outputs
Reviewed-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5e555f93009f0605db120eec78262d0fe337e645
---
libavcodec/mpeg12enc.c | 2 +-
tests/ref/lavf/mxf_d10 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 67bc467..78605c5 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -331,7 +331,7 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s)
put_bits(&s->pb, 1, 1);
put_bits(&s->pb, 6, (uint32_t)((time_code / fps) % 60));
put_bits(&s->pb, 6, (uint32_t)((time_code % fps)));
- put_bits(&s->pb, 1, !!(s->avctx->flags & AV_CODEC_FLAG_CLOSED_GOP));
+ put_bits(&s->pb, 1, !!(s->avctx->flags & AV_CODEC_FLAG_CLOSED_GOP) || s->intra_only);
put_bits(&s->pb, 1, 0); // broken link
}
}
diff --git a/tests/ref/lavf/mxf_d10 b/tests/ref/lavf/mxf_d10
index 5864e8e..8a62bb0 100644
--- a/tests/ref/lavf/mxf_d10
+++ b/tests/ref/lavf/mxf_d10
@@ -1,3 +1,3 @@
-8cf467a910c84dd05db24848becba42e *./tests/data/lavf/lavf.mxf_d10
+96f933913835a439dd97144303dc8929 *./tests/data/lavf/lavf.mxf_d10
5330989 ./tests/data/lavf/lavf.mxf_d10
./tests/data/lavf/lavf.mxf_d10 CRC=0x4474d480
More information about the ffmpeg-cvslog
mailing list