Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 96498e37eb12c3a6f9e3860c721ec0970c42cc7a Mon Sep 17 00:00:00 2001
- From: Oana Stratulat <[email protected]>
- Date: Thu, 5 Jan 2012 00:04:53 +0200
- Subject: [PATCH] Patch for FPE in mtv.c
- ---
- libavformat/mtv.c | 2 ++
- 1 files changed, 2 insertions(+), 0 deletions(-)
- diff --git a/libavformat/mtv.c b/libavformat/mtv.c
- index c3fb15c..95567fc 100644
- --- a/libavformat/mtv.c
- +++ b/libavformat/mtv.c
- @@ -109,6 +109,8 @@ static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
- mtv->full_segment_size =
- audio_subsegments * (MTV_AUDIO_PADDING_SIZE + MTV_ASUBCHUNK_DATA_SIZE) +
- mtv->img_segment_size;
- + av_log(s,AV_LOG_ERROR,"the file is corrupted, audio_subsegments = 0\n");
- + return AVERROR_INVALIDDATA;
- mtv->video_fps = (mtv->audio_br / 4) / audio_subsegments;
- // FIXME Add sanity check here
- --
- 1.7.5.4
Advertisement
Add Comment
Please, Sign In to add comment