]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/r210enc.c
Fix r10k codec for widths that are not multiples of 64.
[ffmpeg] / libavcodec / r210enc.c
index 92c9ce31f649bca752563a3b474c91661ad532b6..0a7dd332ba61d8392fcc57848eb5fb9bf6c70cf7 100644 (file)
@@ -38,7 +38,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
                         const AVFrame *pic, int *got_packet)
 {
     int i, j, ret;
-    int aligned_width = FFALIGN(avctx->width, 64);
+    int aligned_width = FFALIGN(avctx->width,
+                                avctx->codec_id == CODEC_ID_R10K ? 1 : 64);
     int pad = (aligned_width - avctx->width) * 4;
     uint8_t *src_line;
     uint8_t *dst;