diff mpeg12.c @ 1754:bdf3927bf8c5 libavcodec

closed gop support & flags2 as all bits in flags are used and a few minor things i forgot to commit ...
author michael
date Thu, 22 Jan 2004 19:48:28 +0000
parents 7b11032507e2
children b7340afa261a
line wrap: on
line diff
--- a/mpeg12.c	Thu Jan 22 12:09:14 2004 +0000
+++ b/mpeg12.c	Thu Jan 22 19:48:28 2004 +0000
@@ -330,7 +330,7 @@
             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, 0); /* closed gop */
+            put_bits(&s->pb, 1, !!(s->flags & CODEC_FLAG_CLOSED_GOP));
             put_bits(&s->pb, 1, 0); /* broken link */
         }
 }
@@ -1706,6 +1706,7 @@
     
     s->mpeg_enc_ctx.avctx= avctx;
     s->mpeg_enc_ctx.flags= avctx->flags;
+    s->mpeg_enc_ctx.flags2= avctx->flags2;
     common_init(&s->mpeg_enc_ctx);
     init_vlcs();