aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gopher.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-02-17 16:27:36 -0800
committerReinhard Tartler <siretart@tauware.de>2012-02-26 10:03:16 +0100
commitbba43a1ea07392f14c508aeff2ee13a4cfc425b5 (patch)
tree089be320bf3a15b45e714e1ed9f288009f6198e6 /libavformat/gopher.c
parentf947e965beb858b67ab6e49f9e24e8d12d9b5a7d (diff)
downloadffmpeg-bba43a1ea07392f14c508aeff2ee13a4cfc425b5.tar.gz
mjpegb: don't return 0 at the end of frame decoding.
Return 0 indicates "please return the same data again", i.e. it causes an infinite loop. Instead, return that we consumed the buffer if we finished decoding succesfully, or return an error if an error occurred. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org (cherry picked from commit 74699ac8c8b562e9f8d26e21482b89585365774a) Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/gopher.c')
0 files changed, 0 insertions, 0 deletions