Ticket #743: patchv210align24.diff

File patchv210align24.diff, 484 bytes (added by Carl Eugen Hoyos, 15 years ago)
  • libavcodec/v210dec.c

    diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c
    index 147f1f2..364d87f 100644
    a b static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,  
    8080    if (s->custom_stride )
    8181        stride = s->custom_stride;
    8282    else {
    83         int aligned_width = ((avctx->width + 47) / 48) * 48;
     83        int aligned_width = ((avctx->width + 23) / 24) * 24;
    8484        stride = aligned_width * 8 / 3;
    8585    }
    8686