[FFmpeg-cvslog] asfdec: remove improper assignement that caused wrong timestamps

Alexandra Hájková git at videolan.org
Sun Aug 2 11:17:55 CEST 2015


ffmpeg | branch: master | Alexandra Hájková <alexandra.khirnova at gmail.com> | Mon Jul 27 13:37:04 2015 +0200| [33dc1913ab7aaefc991b3e665d1d0b5d0b088672] | committer: Anton Khirnov

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 at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=33dc1913ab7aaefc991b3e665d1d0b5d0b088672
---

 libavformat/asfdec.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 790102b..feaa29c 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;



More information about the ffmpeg-cvslog mailing list