diff utils.c @ 1307:59dbb78518d4 libavformat

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 44c593741578
children 59b0e373c549
line wrap: on
line diff
--- a/utils.c	Sun Sep 10 14:02:42 2006 +0000
+++ b/utils.c	Sun Sep 10 20:21:40 2006 +0000
@@ -486,6 +486,10 @@
 void avformat_get_context_defaults(AVFormatContext *s){
     memset(s, 0, sizeof(AVFormatContext));
 
+    s->av_class = &av_format_context_class;
+
+    av_opt_set_defaults(s);
+
     /* from mpegts.c: 1.0 second at 24Mbit/s */
     s->probesize=32000;
 }