The asf_read_pts should read the bitstream directly.
---
libavformat/asfdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 0245340..ff439af 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -1167,7 +1167,7 @@ static int64_t asf_read_pts(AVFormatContext *s, int
stream_index, int64_t *ppos,
//printf("asf_read_pts\n");
asf_reset_header(s);
for(;;){
- if (av_read_frame(s, pkt) < 0){
+ if (asf_read_packet(s, pkt) < 0){
av_log(s, AV_LOG_INFO, "asf_read_pts failed\n");
return AV_NOPTS_VALUE;
}
--
1.7.7
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel