avformat/aviobuf: Delay buffer downsizing until asserts are met
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 9 Jun 2019 20:04:16 +0000 (22:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Jun 2019 15:43:50 +0000 (17:43 +0200)
commit0334632d5c02720f1829d59cd20c009584b5b163
treea26a975fda3fbf7f1c0f278a100b703047600ff2
parenteb82d19f035f59edf0aee215f02baaea908875de
avformat/aviobuf: Delay buffer downsizing until asserts are met

Fixes: Assertion failure
Fixes: 15151/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5757079496687616
Fixes: 15205/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5767573242642432
May fix: Ticket7094

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/aviobuf.c