aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-22 14:10:49 +0200
committerAnton Khirnov <anton@khirnov.net>2011-07-10 17:06:22 +0200
commit0b950fe240936fa48fd41204bcfd04f35bbf39c3 (patch)
treeeea5c86302cedf4f9515f064901b6bc063442c0d /ffserver.c
parent7f7dc4fb55904e7b51b78ebca746c6755fc9770c (diff)
downloadffmpeg-0b950fe240936fa48fd41204bcfd04f35bbf39c3.tar.gz
lavc: introduce avcodec_open2() as a replacement for avcodec_open().
Adds support for decoder-private options and makes setting other options simpler.
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index b4deb8ffd0..a12d7082b6 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2117,7 +2117,7 @@ static void open_parser(AVFormatContext *s, int i)
codec = avcodec_find_decoder(st->codec->codec_id);
if (codec && (codec->capabilities & CODEC_CAP_PARSE_ONLY)) {
st->codec->parse_only = 1;
- if (avcodec_open(st->codec, codec) < 0)
+ if (avcodec_open2(st->codec, codec, NULL) < 0)
st->codec->parse_only = 0;
}
}