]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vp3.c
proresdec: Fix read via negative index in a global array.
[ffmpeg] / libavcodec / vp3.c
index 738ae9fd258d9afba32ff7a07b5ed26dc856c26b..b5daafcefb34d6050795643050735ef20560ca8e 100644 (file)
@@ -1859,7 +1859,7 @@ static int vp3_update_thread_context(AVCodecContext *dst, const AVCodecContext *
         ||s->width != s1->width
         ||s->height!= s1->height) {
         if (s != s1)
-            copy_fields(s, s1, golden_frame, current_frame);
+            copy_fields(s, s1, golden_frame, keyframe);
         return -1;
     }