summaryrefslogtreecommitdiff
path: root/libavcodec/libschroedingerenc.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2010-05-05 21:02:49 +0000
committerDavid Conrad <lessen42@gmail.com>2010-05-05 21:02:49 +0000
commit31cf8c650a70854f1e2c7f257af279c89702aec8 (patch)
tree68aa667887d6c431ed300e33ee98f8c19d51df70 /libavcodec/libschroedingerenc.c
parent3d6fa004e83c0dcd9d9f71fc0c7a3aaf5e95b5ac (diff)
schroenc: Set open-gop
Originally committed as revision 23028 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libschroedingerenc.c')
-rw-r--r--libavcodec/libschroedingerenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/libschroedingerenc.c b/libavcodec/libschroedingerenc.c
index 71ce54ca39..d328361fe2 100644
--- a/libavcodec/libschroedingerenc.c
+++ b/libavcodec/libschroedingerenc.c
@@ -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,