avcodec/mpegvideo_enc: Reset stuffing bits if they are not supported
Fixes: Assertion failure Fixes: Ticket8202 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 996797f8ed06e6ccb5287e18a5de88b2b0db31ec) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
478c5d838b
commit
78b71acab7
@ -2016,6 +2016,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
av_log(avctx, AV_LOG_ERROR, "vbv buffer overflow\n");
|
av_log(avctx, AV_LOG_ERROR, "vbv buffer overflow\n");
|
||||||
|
s->stuffing_bits = 0;
|
||||||
}
|
}
|
||||||
flush_put_bits(&s->pb);
|
flush_put_bits(&s->pb);
|
||||||
s->frame_bits = put_bits_count(&s->pb);
|
s->frame_bits = put_bits_count(&s->pb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user