]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/apngdec.c
avformat/apngdec: set pts to AV_NOPTS_VALUE
[ffmpeg] / libavformat / apngdec.c
index ffff03710a0e441b6ac8fc4c9c87ef5051360bf3..f9a97e56813e12e491e2198d931765d91106f05c 100644 (file)
@@ -44,7 +44,6 @@ typedef struct APNGDemuxContext {
     int max_fps;
     int default_fps;
 
-    int64_t pkt_pts;
     int pkt_duration;
 
     int is_key_frame;
@@ -390,9 +389,8 @@ static int apng_read_packet(AVFormatContext *s, AVPacket *pkt)
 
         if (ctx->is_key_frame)
             pkt->flags |= AV_PKT_FLAG_KEY;
-        pkt->pts = ctx->pkt_pts;
+        pkt->pts = pkt->dts = AV_NOPTS_VALUE;
         pkt->duration = ctx->pkt_duration;
-        ctx->pkt_pts += ctx->pkt_duration;
         return ret;
     case MKTAG('I', 'E', 'N', 'D'):
         ctx->cur_loop++;