mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-10-03 09:27:53 +02:00
H264: fix slice end error detection
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0d5e6843b4
commit
4ce776d636
@ -3116,7 +3116,8 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg){
|
|||||||
if(s->mb_y >= s->mb_height){
|
if(s->mb_y >= s->mb_height){
|
||||||
tprintf(s->avctx, "slice end %d %d\n", get_bits_count(&s->gb), s->gb.size_in_bits);
|
tprintf(s->avctx, "slice end %d %d\n", get_bits_count(&s->gb), s->gb.size_in_bits);
|
||||||
|
|
||||||
if(get_bits_count(&s->gb) == s->gb.size_in_bits ) {
|
if( get_bits_count(&s->gb) == s->gb.size_in_bits
|
||||||
|
|| get_bits_count(&s->gb) < s->gb.size_in_bits && s->avctx->error_recognition < FF_ER_AGGRESSIVE) {
|
||||||
ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x-1, s->mb_y, (AC_END|DC_END|MV_END)&part_mask);
|
ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x-1, s->mb_y, (AC_END|DC_END|MV_END)&part_mask);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user