Skip to content

Commit

Permalink
Merge commit '48d6556dd46d4f4fac10d0f4a819e314887cd50e'
Browse files Browse the repository at this point in the history
* commit '48d6556dd46d4f4fac10d0f4a819e314887cd50e':
  dsicin: Add some basic sanity checks for fields read from the file

Merged-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Sep 12, 2013
2 parents ae77f06 + 48d6556 commit 7e88dbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavformat/dsicin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7e88dbe

Please sign in to comment.