Revision 81c1ecab libavcodec/imgconvert.c

View differences:

libavcodec/imgconvert.c
794 794
    }
795 795
}
796 796

  
797
#if LIBAVCODEC_VERSION_MAJOR < 53
797 798
int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane)
798 799
{
799 800
    return av_get_image_linesize(pix_fmt, width, plane);
800 801
}
802
#endif
801 803

  
802 804
void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],
803 805
                          uint8_t *src_data[4], int src_linesize[4],
......
812 814
    case FF_PIXEL_PLANAR:
813 815
        for(i = 0; i < pf->nb_channels; i++) {
814 816
            int h;
815
            int bwidth = ff_get_plane_bytewidth(pix_fmt, width, i);
817
            int bwidth = av_get_image_linesize(pix_fmt, width, i);
816 818
            h = height;
817 819
            if (i == 1 || i == 2) {
818 820
                h= -((-height)>>desc->log2_chroma_h);

Also available in: Unified diff