mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-12-18 00:46:51 +00:00
Fix r21223: AVup samples (issue 1685) need a buf offset like AV1x (issue 1684).
Originally committed as revision 21617 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
48ff3f7cc8
commit
36cbdc9539
@ -137,7 +137,8 @@ static int raw_decode(AVCodecContext *avctx,
|
||||
buf= dst;
|
||||
}
|
||||
|
||||
if(avctx->codec_tag == MKTAG('A', 'V', '1', 'x'))
|
||||
if(avctx->codec_tag == MKTAG('A', 'V', '1', 'x') ||
|
||||
avctx->codec_tag == MKTAG('A', 'V', 'u', 'p'))
|
||||
buf += buf_size - context->length;
|
||||
|
||||
if(buf_size < context->length - (avctx->pix_fmt==PIX_FMT_PAL8 ? 256*4 : 0))
|
||||
|
Loading…
Reference in New Issue
Block a user