summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12enc.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2014-03-29 18:46:10 +0100
committerMarton Balint <cus@passwd.hu>2014-04-01 20:52:09 +0200
commit51c61e64cb47ba7dbe0f1e19cfda60eceb1b7660 (patch)
tree8a81950831db917e662dcee72a0f6f5e0bfbfc10 /libavcodec/mpeg12enc.c
parent3b37f2286199ccec7e30b74c56b975e1e4e77739 (diff)
downloadffmpeg-51c61e64cb47ba7dbe0f1e19cfda60eceb1b7660.tar.gz
mpeg12enc: always write closed gops for intra only outputs
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 5a7a612636..f7f19865cd 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));
+ put_bits(&s->pb, 1, !!(s->flags & CODEC_FLAG_CLOSED_GOP) || s->intra_only);
put_bits(&s->pb, 1, 0); // broken link
}
}