On 07/21/2012 11:04 AM, Anton Khirnov wrote:
> ---
>  libavformat/matroskadec.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
> index 40c2eb1..c454713 100644
> --- a/libavformat/matroskadec.c
> +++ b/libavformat/matroskadec.c
> @@ -597,8 +597,9 @@ static int ebml_read_num(MatroskaDemuxContext *matroska, 
> AVIOContext *pb,
>              av_log(matroska->ctx, AV_LOG_ERROR,
>                     "Read error at pos. %"PRIu64" (0x%"PRIx64")\n",
>                     pos, pos);
> +            return pb->error ? pb->error : AVERROR(EIO);
>          }
> -        return AVERROR(EIO); /* EOS or actual I/O error */
> +        return AVERROR_EOF;
>      }
>  
>      /* get the length of the EBML number */

Ok.

-- 

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero

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

Reply via email to