On 03/07/15 09:57, Alexandra Hájková wrote:
> ---
>  libavformat/asfdec.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
> index 45c86e1..72033ed 100644
> --- a/libavformat/asfdec.c
> +++ b/libavformat/asfdec.c
> @@ -1591,8 +1591,10 @@ static int detect_unknown_subobject(AVFormatContext 
> *s, int64_t offset, int64_t
>      const GUIDParseTable *g = NULL;
>      ff_asf_guid guid;
>      int ret;
> +    int64_t off;
>  
> -    while (avio_tell(pb) <= offset + size) {
> +    for (off = avio_tell(pb); off <= offset + size && off != asf->offset;
> +         off = avio_tell(pb)) {
>          asf->offset = avio_tell(pb);
>          if ((ret = ff_get_guid(pb, &guid)) < 0)
>              return ret;
> 

Thank you :)

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

Reply via email to