Hi,

On Mon, Jan 14, 2013 at 11:21 AM, Anton Khirnov <[email protected]> wrote:
> It's been returning an error value since
> bad446e251405dc250c3cbee199072e083a1e4b9
>
> Also check for the errors it returns.
> ---
>  libavcodec/h264.c      |    3 ++-
>  libavcodec/h264.h      |    2 +-
>  libavcodec/h264_refs.c |   10 ++++++----
>  3 files changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/libavcodec/h264.c b/libavcodec/h264.c
> index d2bbe46..e306383 100644
> --- a/libavcodec/h264.c
> +++ b/libavcodec/h264.c
> @@ -2904,7 +2904,8 @@ static int decode_slice_header(H264Context *h, 
> H264Context *h0)
>              s->current_picture_ptr->frame_num = h->prev_frame_num;
>              ff_thread_report_progress(&s->current_picture_ptr->f, INT_MAX, 
> 0);
>              ff_thread_report_progress(&s->current_picture_ptr->f, INT_MAX, 
> 1);
> -            ff_generate_sliding_window_mmcos(h, 1);
> +            if ((ret = ff_generate_sliding_window_mmcos(h, 1)) < 0)
> +                return ret;
>              if (ff_h264_execute_ref_pic_marking(h, h->mmco, h->mmco_index) < 
> 0 &&
>                  (s->avctx->err_recognition & AV_EF_EXPLODE))
>                  return AVERROR_INVALIDDATA;

if ret < 0 && err_recognition & explode
return ret;

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

Reply via email to