[FFmpeg-devel] [PATCH]Fix LZW/ZLIB compressed 4bit tiff
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Sep 25 17:06:07 CEST 2011
On Sun, Sep 25, 2011 at 04:13:18PM +0200, Carl Eugen Hoyos wrote:
> @@ -148,7 +158,11 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uin
> }
> src = zbuf;
> for(line = 0; line < lines; line++){
> - memcpy(dst, src, width);
> + if(s->bpp == 4){
> + split_nibbles(src, dst, width);
> + }else{
> + memcpy(dst, src, width);
> + }
No objections, though that the order of src and dst is swapped
compared to memcpy isn't optimal.
More information about the ffmpeg-devel
mailing list