avformat/aviobuf: Only downscale the buffer once it has been used
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 May 2017 18:52:44 +0000 (20:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 May 2017 19:14:26 +0000 (21:14 +0200)
commit7383a835e47cd8915ff9cdd693e06716dbae3b3a
tree0c534ee77350f14357db19168d3a1d3911043ddc
parent162414cefee64eff114179a45abc45aca5133ed0
avformat/aviobuf: Only downscale the buffer once it has been used

The code mistook the first iteration sometimes as the end

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