[FFmpeg-devel] [PATCH] ffserver: use avcodec_get_context_defaults3()

Paul B Mahol onemda at gmail.com
Sun Feb 5 23:53:31 CET 2012


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 ffserver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ffserver.c b/ffserver.c
index 5531aac..f198571 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -4221,8 +4221,8 @@ static int parse_ffconfig(const char *filename)
                 }
 
                 stream->fmt = ffserver_guess_format(NULL, stream->filename, NULL);
-                avcodec_get_context_defaults2(&video_enc, AVMEDIA_TYPE_VIDEO);
-                avcodec_get_context_defaults2(&audio_enc, AVMEDIA_TYPE_AUDIO);
+                avcodec_get_context_defaults3(&video_enc, NULL);
+                avcodec_get_context_defaults3(&audio_enc, NULL);
 
                 audio_id = CODEC_ID_NONE;
                 video_id = CODEC_ID_NONE;
-- 
1.7.7



More information about the ffmpeg-devel mailing list