diff utils.c @ 3702:7e7d8a3fe080 libavcodec

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
author gpoirier
date Sun, 10 Sep 2006 20:21:40 +0000
parents c63b9bb49532
children 0ff52e136358
line wrap: on
line diff
--- a/utils.c	Sun Sep 10 18:16:19 2006 +0000
+++ b/utils.c	Sun Sep 10 20:21:40 2006 +0000
@@ -765,6 +765,9 @@
     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;