On 02/07/15 14:17, Alexandra Hájková wrote:
> ---
>  libavformat/asfdec.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
> index 45c86e1..58769d9 100644
> --- a/libavformat/asfdec.c
> +++ b/libavformat/asfdec.c
> @@ -1593,6 +1593,8 @@ static int detect_unknown_subobject(AVFormatContext *s, 
> int64_t offset, int64_t
>      int ret;
>  
>      while (avio_tell(pb) <= offset + size) {
> +        if (avio_tell(pb) == asf->offset)
> +            break;
>          asf->offset = avio_tell(pb);
>          if ((ret = ff_get_guid(pb, &guid)) < 0)
>              return ret;
> 

for(off = avio_tell(pb);
    off <= offset + size && off != asf->offset;
    off = avio_tell(pb))

maybe is nicer to read.

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

Reply via email to