On Wed, Apr 12, 2017 at 12:06 PM, Francois Cartegnie <[email protected]> wrote:
> This happens at least with h264 (I have not tested other codecs).
>
> When corrupted frames output is set, any corrupted
> frame is flagged but that information is lost when
> av_frame_ref is used on output.
>
> The other local only h264 fix would be to copy flags
> in h264dec output_frame().
>
> Francois
> ---
>  libavutil/frame.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavutil/frame.c b/libavutil/frame.c
> index 9cd5f9a..e75236c 100644
> --- a/libavutil/frame.c
> +++ b/libavutil/frame.c
> @@ -205,6 +205,7 @@ int av_frame_ref(AVFrame *dst, const AVFrame *src)
>      int i, ret = 0;
>
>      dst->format         = src->format;
> +    dst->flags          = src->flags;
>      dst->width          = src->width;
>      dst->height         = src->height;
>      dst->channel_layout = src->channel_layout;

You must be encountering something else.
av_frame_copy_props already copies the flags field, and its invoked by
av_frame_ref just below the block you added it to.

- Hendrik
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to