oanastratulat

Untitled

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