summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-02-05 22:53:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-02-07 05:51:31 +0100
commit0b717e24f98245237b67c7ca5b677c59dc2129d5 (patch)
treeec107363f3d8c40839fea44de5860dd9fa88e512 /ffserver.c
parentb479e016128efe42e8b26ceb6c1b4a95b6d0c791 (diff)
downloadffmpeg-0b717e24f98245237b67c7ca5b677c59dc2129d5.tar.gz
ffserver: use avcodec_get_context_defaults3()
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffserver.c b/ffserver.c
index 5531aacd2a..f1985714da 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;