Guest User

Untitled

a guest
Jan 10th, 2012
25
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/libavformat/avidec.c b/libavformat/avidec.c
  2. index 6112af4..c893254 100644
  3. --- a/libavformat/avidec.c
  4. +++ b/libavformat/avidec.c
  5. @@ -544,6 +544,10 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
  6. st->start_time = 0;
  7. avio_rl32(pb); /* buffer size */
  8. avio_rl32(pb); /* quality */
  9. + if (ast->cum_len*ast->scale/ast->rate > 3600) {
  10. + av_log(s, AV_LOG_ERROR, "crazy start time, iam scared, giving up\n");
  11. + return AVERROR_INVALIDDATA;
  12. + }
  13. ast->sample_size = avio_rl32(pb); /* sample ssize */
  14. ast->cum_len *= FFMAX(1, ast->sample_size);
  15. // av_log(s, AV_LOG_DEBUG, "%d %d %d %d\n", ast->rate, ast->scale, ast->start, ast->sample_size);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×