summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2006-09-10 20:21:40 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-09-10 20:21:40 +0000
commit73a8ceaa17e364dd5bb800de1492a4f2368da644 (patch)
treead7cef8b5abd12ed7578a623ac9fd1f2db2c6043 /libavformat
parentb7cff9ce7c4beb181daa0284ad3ad8fd575e4c8d (diff)
downloadffmpeg-streaming-73a8ceaa17e364dd5bb800de1492a4f2368da644.zip
ffmpeg-streaming-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 'libavformat')
-rw-r--r--libavformat/utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index d9b5789..a9adb2b 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -486,6 +486,10 @@ static
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;
}
OpenPOWER on IntegriCloud