Mercurial > libavcodec.hg
comparison imgconvert.c @ 8087:661cd381d996 libavcodec
Remove unused variable, patch by Art Clarke, aclarke vlideshow com.
author | diego |
---|---|
date | Thu, 30 Oct 2008 09:13:48 +0000 |
parents | 1fe764a5c33e |
children | 589f9a71df95 |
comparison
equal
deleted
inserted
replaced
8086:ae146e429003 | 8087:661cd381d996 |
---|---|
892 pf = &pix_fmt_info[pix_fmt]; | 892 pf = &pix_fmt_info[pix_fmt]; |
893 switch(pf->pixel_type) { | 893 switch(pf->pixel_type) { |
894 case FF_PIXEL_PACKED: | 894 case FF_PIXEL_PACKED: |
895 case FF_PIXEL_PLANAR: | 895 case FF_PIXEL_PLANAR: |
896 for(i = 0; i < pf->nb_channels; i++) { | 896 for(i = 0; i < pf->nb_channels; i++) { |
897 int w, h; | 897 int h; |
898 int bwidth = ff_get_plane_bytewidth(pix_fmt, width, i); | 898 int bwidth = ff_get_plane_bytewidth(pix_fmt, width, i); |
899 w = width; | |
900 h = height; | 899 h = height; |
901 if (i == 1 || i == 2) { | 900 if (i == 1 || i == 2) { |
902 w >>= pf->x_chroma_shift; | |
903 h= -((-height)>>pf->y_chroma_shift); | 901 h= -((-height)>>pf->y_chroma_shift); |
904 } | 902 } |
905 ff_img_copy_plane(dst->data[i], dst->linesize[i], | 903 ff_img_copy_plane(dst->data[i], dst->linesize[i], |
906 src->data[i], src->linesize[i], | 904 src->data[i], src->linesize[i], |
907 bwidth, h); | 905 bwidth, h); |