Quoting Hendrik Leppkes (2015-07-12 12:34:13)
> ---
> Sample: http://files.1f0.de/samples/lav_wmv_slow_seek.wmv
> 
> It appears to be largely a problem when you seek in the middle of playback,
> ie. from an actual player instead of using the seek option on avconv.
> 
> Without this patch, seeking seems to generally not work at all.
> 
> 
> libavformat/asfdec.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
> index 8e706fb..eaa69fd 100644
> --- a/libavformat/asfdec.c
> +++ b/libavformat/asfdec.c
> @@ -1558,12 +1558,10 @@ static int asf_read_seek(AVFormatContext *s, int 
> stream_index,
>      } else {
>          if ((ret = ff_seek_frame_binary(s, stream_index, timestamp, flags)) 
> < 0)
>              return ret;
> -
> -        // asf_read_timestamp is called inside ff_seek_frame_binary and 
> leaves state dirty,
> -        // so reset_packet_state have to be called after it.
> -        reset_packet_state(s);
>      }
>  
> +    reset_packet_state(s);
> +
>      return 0;
>  }
>  
> -- 
> 1.9.5.msysgit.1

Any idea why do the FATE seek tests work?

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

Reply via email to