avcodec/mpegvideo_enc: Reset stuffing bits if they are not supported
Fixes: Assertion failure Fixes: Ticket8202 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c297f7e57a
commit
996797f8ed
1 changed files with 1 additions and 0 deletions
|
|
@ -1846,6 +1846,7 @@ vbv_retry:
|
|||
break;
|
||||
default:
|
||||
av_log(avctx, AV_LOG_ERROR, "vbv buffer overflow\n");
|
||||
s->stuffing_bits = 0;
|
||||
}
|
||||
flush_put_bits(&s->pb);
|
||||
s->frame_bits = put_bits_count(&s->pb);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue