projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2f861c
)
asfdec: fix FATE seek test
author
Hendrik Leppkes
<h.leppkes@gmail.com>
Tue, 27 Oct 2015 14:29:12 +0000
(15:29 +0100)
committer
Hendrik Leppkes
<h.leppkes@gmail.com>
Tue, 27 Oct 2015 14:29:12 +0000
(15:29 +0100)
libavformat/asfdec_f.c
patch
|
blob
|
history
diff --git
a/libavformat/asfdec_f.c
b/libavformat/asfdec_f.c
index
3865b0e
..
8b89a1a
100644
(file)
--- a/
libavformat/asfdec_f.c
+++ b/
libavformat/asfdec_f.c
@@
-1538,7
+1538,6
@@
static int64_t asf_read_pts(AVFormatContext *s, int stream_index,
pts = pkt->dts;
- av_packet_unref(pkt);
if (pkt->flags & AV_PKT_FLAG_KEY) {
i = pkt->stream_index;
@@
-1552,9
+1551,12
@@
static int64_t asf_read_pts(AVFormatContext *s, int stream_index,
pos - start_pos[i] + 1, AVINDEX_KEYFRAME);
start_pos[i] = asf_st->packet_pos + 1;
- if (pkt->stream_index == stream_index)
+ if (pkt->stream_index == stream_index) {
+ av_packet_unref(pkt);
break;
+ }
}
+ av_packet_unref(pkt);
}
*ppos = pos;