diff options
author | Marton Balint <cus@passwd.hu> | 2014-03-29 20:31:14 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2014-04-01 20:52:37 +0200 |
commit | a0cf87780dc1b9e1ff5daa2d429d80983219bea1 (patch) | |
tree | 7861c47e2375e9d8109c493ef80083a8c35d3260 /libavcodec/mpeg12enc.c | |
parent | 51c61e64cb47ba7dbe0f1e19cfda60eceb1b7660 (diff) | |
download | ffmpeg-a0cf87780dc1b9e1ff5daa2d429d80983219bea1.tar.gz |
mpeg12enc: always set closed gop flag on the first gop
Improves compatibility with XDCAM HD formats. It has been set for a long time
in ffmbc.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/mpeg12enc.c')
-rw-r--r-- | libavcodec/mpeg12enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c index f7f19865cd..af99dedfe3 100644 --- a/libavcodec/mpeg12enc.c +++ b/libavcodec/mpeg12enc.c @@ -350,7 +350,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->flags & CODEC_FLAG_CLOSED_GOP) || s->intra_only); + put_bits(&s->pb, 1, !!(s->flags & CODEC_FLAG_CLOSED_GOP) || s->intra_only || !s->gop_picture_number); put_bits(&s->pb, 1, 0); // broken link } } |