Changeset 750f72d7 in ffmpeg
- Timestamp:
-
Aug 11, 2015, 10:14:15 AM
(9 years ago)
- Author:
- wm4 <nfxjfg@googlemail.com>
- Branches:
- master
- Children:
- 7f116973
- Parents:
- 08600165
- git-author:
- wm4 <nfxjfg@googlemail.com> (08/11/15 09:26:19)
- git-committer:
- wm4 <nfxjfg@googlemail.com> (08/11/15 10:14:15)
- Message:
-
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.
-
(No files)
-