[FFmpeg-devel] [PATCHv2] avcodec/h264: Set CORRUPT flag on output frames that are not fully recovered

Michael Niedermayer michaelni at gmx.at
Tue Dec 8 16:31:08 CET 2015

On Tue, Dec 08, 2015 at 10:24:09AM +0200, Sebastian Dröge wrote:
> From: Sebastian Dröge <sebastian at centricular.com>
> In the merge commit 78265fcfeee153e5e26ad4dbc7831a84ade447d6 this behaviour
> was broken and the CORRUPT flag would never ever be set on a frame. However
> the flag on the AVCodecContext was taken into account properly, including
> The reason for this was that the recovered field of the next output picture
> was always set to TRUE whenever one of the two AVCodecContext flags was set,
> which made it impossible to detect later, before outputting, if the frame was
> really recovered or not. Now don't set it to TRUE unless the frame is really
> recovered and check the AVCodecContext flags right before outputting.
> Signed-off-by: Sebastian Dröge <sebastian at centricular.com>
> ---
>  libavcodec/h264.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151208/df6fde16/attachment.sig>

More information about the ffmpeg-devel mailing list