Mercurial > libavcodec.hg
comparison rawdec.c @ 11072:0f3a09795840 libavcodec
Fix r21223: AVup samples (issue 1685) need a buf offset like AV1x (issue 1684).
author | cehoyos |
---|---|
date | Tue, 02 Feb 2010 22:57:56 +0000 |
parents | 1cebb3ea364b |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
11071:327019a2d156 | 11072:0f3a09795840 |
---|---|
135 dst[4*i+3]= buf[i] &3; | 135 dst[4*i+3]= buf[i] &3; |
136 } | 136 } |
137 buf= dst; | 137 buf= dst; |
138 } | 138 } |
139 | 139 |
140 if(avctx->codec_tag == MKTAG('A', 'V', '1', 'x')) | 140 if(avctx->codec_tag == MKTAG('A', 'V', '1', 'x') || |
141 avctx->codec_tag == MKTAG('A', 'V', 'u', 'p')) | |
141 buf += buf_size - context->length; | 142 buf += buf_size - context->length; |
142 | 143 |
143 if(buf_size < context->length - (avctx->pix_fmt==PIX_FMT_PAL8 ? 256*4 : 0)) | 144 if(buf_size < context->length - (avctx->pix_fmt==PIX_FMT_PAL8 ? 256*4 : 0)) |
144 return -1; | 145 return -1; |
145 | 146 |