Browse Source

avformat/thp: Require a video stream

The demuxer code assumes the existence of a video stream

Fixes: assertion failure
Fixes: 21512/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5699660783288320

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 97c78caf3e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.2.15
Michael Niedermayer 5 years ago
parent
commit
5be59bb8a1
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/thp.c

+ 3
- 0
libavformat/thp.c View File

@@ -145,6 +145,9 @@ static int thp_read_header(AVFormatContext *s)
}
}

if (!thp->vst)
return AVERROR_INVALIDDATA;

return 0;
}



Loading…
Cancel
Save