mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-05 06:40:03 +00:00
round readed bits up to next 32bits, as orginal huffyuv cant handle less then 32bit blocks
Originally committed as revision 1598 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d4e242755f
commit
8c031d1cbd
@ -893,7 +893,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
|
||||
|
||||
*data_size = sizeof(AVFrame);
|
||||
|
||||
return (get_bits_count(&s->gb)+7)>>3;
|
||||
return (get_bits_count(&s->gb)+31)/32*4;
|
||||
}
|
||||
|
||||
static int decode_end(AVCodecContext *avctx)
|
||||
|
Loading…
Reference in New Issue
Block a user