OSDN Git Service

schroenc: Set open-gop
authorDavid Conrad <lessen42@gmail.com>
Wed, 5 May 2010 21:02:49 +0000 (21:02 +0000)
committerDavid Conrad <lessen42@gmail.com>
Wed, 5 May 2010 21:02:49 +0000 (21:02 +0000)
Originally committed as revision 23028 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/libschroedingerenc.c

index 71ce54c..d328361 100644 (file)
@@ -194,6 +194,9 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext)
         schro_encoder_setting_set_double(p_schro_params->encoder,
                                          "interlaced_coding", 1);
 
+    schro_encoder_setting_set_double(p_schro_params->encoder, "open_gop",
+                                     !(avccontext->flags & CODEC_FLAG_CLOSED_GOP));
+
     /* FIXME: Signal range hardcoded to 8-bit data until both libschroedinger
      * and libdirac support other bit-depth data. */
     schro_video_format_set_std_signal_range(p_schro_params->format,