avidec: Fix regression with chunks that are larger than the file.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 25 Jan 2012 04:21:23 +0000 (05:21 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 25 Jan 2012 05:48:30 +0000 (06:48 +0100)
commit28d634711b0cca18677a48d18416566b6565b567
treef5a12476410e6fab5545f6d4a047d4cbb8fe52ae
parent59e95fa4a8844d2abe7ddd7b8d269ea8d8eea17d
avidec: Fix regression with chunks that are larger than the file.

This commit makes the check specific to the case that needs it.

Regression was introduced by
commit 62adc60b97d854507d07a21b2f370ab5c69e6b7b
Author: Michael Niedermayer <michaelni@gmx.at>
Date:   Fri Dec 16 06:13:04 2011 +0100

    avidec: Check that the header chunks fit in the available filesize.
    Fixes Ticket771
    Bug found by: Diana Elena Muscalu

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avidec.c