diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2016-11-08 00:49:43 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-08 12:12:04 +0100 |
commit | 689f648a9596fc1a47a719b20d7e9d67eb388d73 (patch) | |
tree | 0d5ba565a666a19c3475a81739a30a6e4bf75543 /ffserver.c | |
parent | 311107a65d0105044d1691b5e85d6f30879b0eb4 (diff) | |
download | ffmpeg-689f648a9596fc1a47a719b20d7e9d67eb388d73.tar.gz |
ffserver: use .codecpar instead of .codec in print_stream_params()
AVStream.codec is deprecated
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ffserver.c b/ffserver.c index bbeca35cc1..ed8cb2f4de 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1880,21 +1880,21 @@ static inline void print_stream_params(AVIOContext *pb, FFServerStream *stream) for (i = 0; i < stream_no; i++) { st = stream->streams[i]; - codec = avcodec_find_encoder(st->codec->codec_id); + codec = avcodec_find_encoder(st->codecpar->codec_id); parameters[0] = 0; - switch(st->codec->codec_type) { + switch(st->codecpar->codec_type) { case AVMEDIA_TYPE_AUDIO: type = "audio"; snprintf(parameters, sizeof(parameters), "%d channel(s), %d Hz", - st->codec->channels, st->codec->sample_rate); + st->codecpar->channels, st->codecpar->sample_rate); break; case AVMEDIA_TYPE_VIDEO: type = "video"; snprintf(parameters, sizeof(parameters), - "%dx%d, q=%d-%d, fps=%d", st->codec->width, - st->codec->height, st->codec->qmin, st->codec->qmax, + "%dx%d, q=%d-%d, fps=%d", st->codecpar->width, + st->codecpar->height, st->codec->qmin, st->codec->qmax, st->codec->time_base.den / st->codec->time_base.num); break; default: |