]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/r210dec.c
alacdec: fix packed sample output with 5.1
[ffmpeg] / libavcodec / r210dec.c
index b81a4f22c7b27e35ccfe949287ad0224dd58d6f6..07dc5886b8c1844fa21d57ad3aafb13b60e4ff19 100644 (file)
@@ -41,7 +41,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
     int h, w;
     AVFrame *pic = avctx->coded_frame;
     const uint32_t *src = (const uint32_t *)avpkt->data;
-    int aligned_width = FFALIGN(avctx->width, 64);
+    int aligned_width = FFALIGN(avctx->width,
+                                avctx->codec_id == CODEC_ID_R10K ? 1 : 64);
     uint8_t *dst_line;
 
     if (pic->data[0])