aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandra Hájková <alexandra.khirnova@gmail.com>2015-07-27 13:37:04 +0200
committerAnton Khirnov <anton@khirnov.net>2015-07-31 09:10:05 +0200
commit33dc1913ab7aaefc991b3e665d1d0b5d0b088672 (patch)
treef1a0c31a15468301993403e8825d79b89ad85689
parent78491fe8cfed83d2aead95dafe26f0d3f999e961 (diff)
downloadffmpeg-33dc1913ab7aaefc991b3e665d1d0b5d0b088672.tar.gz
asfdec: remove improper assignement that caused wrong timestamps
and remove unneeded variable Sample-Id: https://samples.libav.org/asf-wmv/asf-code-53/movn018.asf Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavformat/asfdec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 790102b378..feaa29c737 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -127,7 +127,6 @@ typedef struct ASFContext {
int64_t sub_dts;
uint8_t dts_delta; // for subpayloads
uint32_t packet_size_internal; // packet size stored inside ASFPacket, can be 0
- int64_t dts;
int64_t packet_offset; // offset of the current packet inside Data Object
uint32_t pad_len; // padding after payload
uint32_t rep_data_len;
@@ -1248,7 +1247,6 @@ static int asf_read_payload(AVFormatContext *s, AVPacket *pkt)
if (asf->stream_index == asf->asf_st[i]->stream_index) {
asf_pkt = &asf->asf_st[i]->pkt;
asf_pkt->stream_index = asf->asf_st[i]->index;
- asf_pkt->dts = asf->dts;
break;
}
}
@@ -1486,7 +1484,6 @@ static void reset_packet_state(AVFormatContext *s)
asf->nb_sub = 0;
asf->prop_flags = 0;
asf->sub_dts = 0;
- asf->dts = 0;
for (i = 0; i < asf->nb_streams; i++) {
ASFPacket *pkt = &asf->asf_st[i]->pkt;
pkt->size_left = 0;