Commit 7e88dbe9 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '48d6556d'

* commit '48d6556d':
  dsicin: Add some basic sanity checks for fields read from the file
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents ae77f06c 48d6556d
......@@ -155,6 +155,8 @@ static int cin_read_frame_header(CinDemuxContext *cin, AVIOContext *pb) {
if (avio_rl32(pb) != 0xAA55AA55)
return AVERROR_INVALIDDATA;
if (hdr->video_frame_size < 0 || hdr->audio_frame_size < 0)
return AVERROR_INVALIDDATA;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment