[FFmpeg-devel] [PATCH] libavcodec/h261dec: Fix keyframe markup and frame skipping.

Michael Niedermayer michael at niedermayer.cc
Sat Oct 26 21:15:17 EEST 2019


On Sat, Oct 26, 2019 at 02:05:27PM +0300, Andrey Semashev wrote:
> The decoder never marks pictures as I-frames, which results in no
> keyframe indication and incorrect frame skipping, in cases when
> keyframes should be decoded.
> 
> This commit works around this decoder limitation and marks I-frames
> and keyframes based on "freeze picture release" bit in h261 picture
> header. This reflects h261enc behavior.
> ---
>  libavcodec/h261.h    |  1 +
>  libavcodec/h261dec.c | 27 ++++++++++++++++++---------
>  2 files changed, 19 insertions(+), 9 deletions(-)

If the goal is correctly recognizing I frames then checking if all
blocks are intra should be the most reliable
that wont work for skiping though as it requires decoding

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20191026/0dd674e7/attachment.sig>


More information about the ffmpeg-devel mailing list