ffserver: use AVStream.codecpar in open_input_stream()
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Tue, 8 Nov 2016 09:34:58 +0000 (01:34 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 8 Nov 2016 11:12:19 +0000 (12:12 +0100)
AVStream.codec is deprecated

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffserver.c

index 01f311d..3007e2d 100644 (file)
@@ -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;
         }
     }