On 2013-03-04 11:35:27 +0100, Anton Khirnov wrote:
> ---
>  libavcodec/h261dec.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
> index 3997172..d8ce66d 100644
> --- a/libavcodec/h261dec.c
> +++ b/libavcodec/h261dec.c
> @@ -624,7 +624,8 @@ retry:
>  assert(s->current_picture.f.pict_type == 
> s->current_picture_ptr->f.pict_type);
>  assert(s->current_picture.f.pict_type == s->pict_type);
>  
> -    *pict = s->current_picture_ptr->f;
> +    if ((ret = av_frame_ref(pict, &s->current_picture_ptr->f)) < 0)
> +        return ret;
>      ff_print_debug_info(s, s->current_picture_ptr);
>  
>      *got_frame = 1;

ok

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

Reply via email to