Vladimir - any comments on this patch?
On Mon, Feb 3, 2014 at 3:21 AM, Luca Barbato <[email protected]> wrote: > On 03/02/14 01:05, Andrew Kelley wrote: > > This is a workaround for the WMA decoder which incorrectly seeks to > > 0 for some streams. > > > > Bug-id: 43 > > --- > > libavformat/asfdec.c | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c > > index 5b4366e..87b1f62 100644 > > --- a/libavformat/asfdec.c > > +++ b/libavformat/asfdec.c > > @@ -1475,6 +1475,12 @@ static int asf_read_seek(AVFormatContext *s, int > stream_index, > > return 0; > > } > > } > > + /* explicitly handle the case of seeking to 0 */ > > + if (!pts) { > > + asf_reset_header(s); > > + avio_seek(s->pb, s->data_offset, SEEK_SET); > > + return 0; > > + } > > /* no index or seeking by index failed */ > > if (ff_seek_frame_binary(s, stream_index, pts, flags) < 0) > > return -1; > > > > Let's wait a moment for Vladimir to chip in. > > lu > _______________________________________________ > libav-devel mailing list > [email protected] > https://lists.libav.org/mailman/listinfo/libav-devel > _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
