]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/huffyuvdec.c
avcodec/binkaudio: clear padding area of packet_buffer
[ffmpeg] / libavcodec / huffyuvdec.c
index 3cfda9b767792b19d6e027d30550d1b1c2fbef67..cbb41facb8f985ecd964b0dab88f4ca52a0dd8bd 100644 (file)
@@ -406,6 +406,9 @@ static void decode_422_bitstream(HYuvContext *s, int count)
             READ_2PIX(s->temp[0][2 * i    ], s->temp[1][i], 1);
             READ_2PIX(s->temp[0][2 * i + 1], s->temp[2][i], 2);
         }
+        for (; i < count; i++)
+            s->temp[0][2 * i    ] = s->temp[1][i] =
+            s->temp[0][2 * i + 1] = s->temp[2][i] = 128;
     } else {
         for (i = 0; i < count; i++) {
             READ_2PIX(s->temp[0][2 * i    ], s->temp[1][i], 1);