On 3/28/2012 11:21 PM, Ronald S. Bultje wrote:
Hi,

On Wed, Mar 28, 2012 at 8:51 AM, Mashiat Sarker Shakkhar
<[email protected]>  wrote:
On 3/28/2012 8:06 PM, Ronald S. Bultje wrote:

---
  libavcodec/wmalosslessdec.c |   13 +++++++++++++
  1 files changed, 13 insertions(+), 0 deletions(-)

[...]

This does not fix seeking for me, at least not with avplay. I thought I had
already reported the issue. Benjamin and Kostya, can you seek to anywhere in
the stream after this patch? I can seek to only 1 or 2 places - even that is
inaccurate.

That's a bug in the asf demuxer, this patch fixes it:

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index d3869b4..f094647 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -1235,7 +1235,7 @@ static void
asf_build_simple_index(AVFormatContext *s, int stream_index)
              last_pos=pos;
              }
          }
-        asf->index_read= 1;
+        asf->index_read= ict>  0;
      }
      avio_seek(s->pb, current_pos, SEEK_SET);
  }

Ronald

Great fix! Finally a solution. Much appreciated.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to