Browse Source

Revert "ffserver: use AVStream.codecpar in open_input_stream()"

Fixes null pointer dereference

Testcase is simply a ffmpeg instance sending a stream to ffserver while another ffmpeg reads from it

This reverts commit 6f0a1710d7.
tags/n3.3
Michael Niedermayer 8 years ago
parent
commit
bc9eb0467a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ffserver.c

+ 1
- 1
ffserver.c View 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]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {
c->stream->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
c->pts_stream_index = i;
}
}


Loading…
Cancel
Save