Revision 2839c56e

View differences:

libavcodec/imgconvert.c
948 948
        return (width * bits + 7) >> 3;
949 949
        break;
950 950
    case FF_PIXEL_PLANAR:
951
            if (plane == 1 || plane == 2)
951
            if ((pix_fmt != PIX_FMT_NV12 && pix_fmt != PIX_FMT_NV21) &&
952
                (plane == 1 || plane == 2))
952 953
                width= -((-width)>>desc->log2_chroma_w);
953 954

  
954 955
            return (width * pf->depth + 7) >> 3;

Also available in: Unified diff