diff options
author | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2006-09-10 20:21:40 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2006-09-10 20:21:40 +0000 |
commit | 73a8ceaa17e364dd5bb800de1492a4f2368da644 (patch) | |
tree | ad7cef8b5abd12ed7578a623ac9fd1f2db2c6043 /libavcodec/utils.c | |
parent | b7cff9ce7c4beb181daa0284ad3ad8fd575e4c8d (diff) | |
download | ffmpeg-73a8ceaa17e364dd5bb800de1492a4f2368da644.tar.gz |
make AVOptions default value field work.
Patch by Panagiotis Issaris % takis P issaris A uhasselt P be %
Original thread:
Date: Sep 8, 2006 3:22 PM
Subject: [Ffmpeg-devel] [PATCH 1/2] Enable usage of AVOption default value
Originally committed as revision 6224 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 0e59852eae..5aba3dac8a 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -765,6 +765,9 @@ void avcodec_get_context_defaults(AVCodecContext *s){ memset(s, 0, sizeof(AVCodecContext)); s->av_class= &av_codec_context_class; + + av_opt_set_defaults(s); + s->bit_rate= 800*1000; s->bit_rate_tolerance= s->bit_rate*10; s->qmin= 2; |