aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/jpeg2000.h
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-08-11 11:26:19 +0200
committerwm4 <nfxjfg@googlemail.com>2015-08-11 12:14:15 +0200
commit750f72d7758740d79c2b326a273cbe3af4541f18 (patch)
treee4e82235687fb14a8c97a96c749e98c1c001ea6e /libavcodec/jpeg2000.h
parent086001652982db6c22bcff30e122ebe8229a1d85 (diff)
downloadffmpeg-750f72d7758740d79c2b326a273cbe3af4541f18.tar.gz
mmaldec: hack against buffering problems on broken input
I can't come up with a nice way to handle this. It's hard to keep the lock-stepped input/output in this case. You can't predict whether the MMAL decoder will output a picture (because it's asynchronous), so you have to assume in general that any packet could produce 0 or 1 frames. You can't continue to write input packets to the decoder, because then you might get too many output frames, which you can't get rid of because the lavc decoding API does not allow the decoder to return an output frame without consuming an input frame (except when flushing). The ideal fix is a M:N decoding API (preferably asynchronous), which would make this code potentially much cleaner. For now, this hack will do.
Diffstat (limited to 'libavcodec/jpeg2000.h')
0 files changed, 0 insertions, 0 deletions