mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-01 21:12:53 +08:00
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
This commit is contained in:
committed by
Guillaume Poirier
parent
b7cff9ce7c
commit
73a8ceaa17
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user