summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2016-11-08 01:34:58 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2016-11-08 12:12:19 +0100
commit6f0a1710d77dde0d803861506a2157a23f08c14c (patch)
treee502bd11913272a319190734a0221c4ddeea61cf /ffserver.c
parent822e3e2ddb8a122130047451276cda2b1b5e5e7f (diff)
downloadffmpeg-6f0a1710d77dde0d803861506a2157a23f08c14c.tar.gz
ffserver: use AVStream.codecpar in open_input_stream()
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index 01f311df67..3007e2d106 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2213,7 +2213,7 @@ static int open_input_stream(HTTPContext *c, const char *info)
c->pts_stream_index = 0;
for(i=0;i<c->stream->nb_streams;i++) {
if (c->pts_stream_index == 0 &&
- c->stream->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
+ c->stream->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {
c->pts_stream_index = i;
}
}