On Sat, 23 Apr 2016 17:34:56 +0200
Michael Niedermayer <[email protected]> wrote:

> Signed-off-by: Michael Niedermayer <[email protected]>
> ---
>  libavcodec/utils.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavcodec/utils.c b/libavcodec/utils.c
> index 946ecb9..21ad3cf 100644
> --- a/libavcodec/utils.c
> +++ b/libavcodec/utils.c
> @@ -2422,6 +2422,8 @@ fail:
>              av_frame_unref(frame);
>      }
>  
> +    av_assert0(ret <= avpkt->size);
> +
>      return ret;
>  }
>  

If you're confident that this actually holds true for all decoders,
fine.
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to