]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rawdec.c
avcodec/wavpack: Fix runtime error: signed integer overflow: 1886191616 + 277872640...
[ffmpeg] / libavcodec / rawdec.c
index 6dcb5f2e662462f886075cdae7824a81d0974d7d..1893b2644401ada942e977a1a5f440087e881e5d 100644 (file)
@@ -237,8 +237,8 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
     if (res < 0)
         return res;
 
-    av_frame_set_pkt_pos     (frame, avctx->internal->last_pkt_props->pos);
-    av_frame_set_pkt_duration(frame, avctx->internal->last_pkt_props->duration);
+    frame->pkt_pos      = avctx->internal->last_pkt_props->pos;
+    frame->pkt_duration = avctx->internal->last_pkt_props->duration;
 
     if (context->tff >= 0) {
         frame->interlaced_frame = 1;