mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc/mjpegenc: Fix not writing RST tag after final slice.
Fixes ticket #8412.
This commit is contained in:
parent
fc2523c792
commit
f2e7864496
@ -573,7 +573,7 @@ int ff_mjpeg_encode_stuffing(MpegEncContext *s)
|
|||||||
|
|
||||||
ff_mjpeg_escape_FF(pbc, s->esc_pos);
|
ff_mjpeg_escape_FF(pbc, s->esc_pos);
|
||||||
|
|
||||||
if((s->avctx->active_thread_type & FF_THREAD_SLICE) && mb_y < s->mb_height)
|
if((s->avctx->active_thread_type & FF_THREAD_SLICE) && mb_y < s->mb_height - 1)
|
||||||
put_marker(pbc, RST0 + (mb_y&7));
|
put_marker(pbc, RST0 + (mb_y&7));
|
||||||
s->esc_pos = put_bits_count(pbc) >> 3;
|
s->esc_pos = put_bits_count(pbc) >> 3;
|
||||||
fail:
|
fail:
|
||||||
|
Loading…
Reference in New Issue
Block a user