lavf: compute probe buffer size more reliably.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 4 Dec 2012 18:49:51 +0000 (19:49 +0100)
committerNicolas George <nicolas.george@normalesup.org>
Tue, 4 Dec 2012 18:49:51 +0000 (19:49 +0100)
commit03847eb8259291b4ff1bd840bd779d0699d71f96
tree95b994f515737b215e21a7e5845f3477c50420a7
parent0444733b78c075e480fd6061e461855e75910771
lavf: compute probe buffer size more reliably.

The previous code computes the offset by reversing the growth
of the allocated buffer size: it is complex and did lead to
inconsistencies when the size limit is reached.

Fix trac ticket #1991.
libavformat/utils.c