aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver_config.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-11-27 17:42:50 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-11-28 22:45:28 +0100
commit75b436d8b682db6f402fdb0561661ec5c0203cfc (patch)
treee654ea0f8ab88e728467a1dae1b672e5613335c7 /ffserver_config.c
parentc8b24a685ac5e8b21877063c211339558a59eb82 (diff)
downloadffmpeg-75b436d8b682db6f402fdb0561661ec5c0203cfc.tar.gz
ffserver: Remove use of AVStream as a intermediate to store parameters
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffserver_config.c')
-rw-r--r--ffserver_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffserver_config.c b/ffserver_config.c
index 99709b54c7..14c58cebb5 100644
--- a/ffserver_config.c
+++ b/ffserver_config.c
@@ -182,7 +182,7 @@ bail:
static void add_codec(FFServerStream *stream, AVCodecContext *av,
FFServerConfig *config)
{
- AVStream *st;
+ LayeredAVStream *st;
AVDictionary **opts, *recommended = NULL;
char *enc_config;
@@ -313,12 +313,12 @@ static void add_codec(FFServerStream *stream, AVCodecContext *av,
}
done:
- st = av_mallocz(sizeof(AVStream));
+ st = av_mallocz(sizeof(*st));
if (!st)
return;
av_dict_get_string(recommended, &enc_config, '=', ',');
av_dict_free(&recommended);
- av_stream_set_recommended_encoder_configuration(st, enc_config);
+ st->recommended_encoder_configuration = enc_config;
st->codec = av;
stream->streams[stream->nb_streams++] = st;
}