mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-23 15:53:08 +00:00
avcodec/ffv1enc: restore header writing behavior for version > 1
Broken by accident in a6c58353ac
.
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
f3eca3f387
commit
d6b39373a2
@ -918,11 +918,13 @@ static int encode_init_internal(AVCodecContext *avctx)
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if ((ret = encode_determine_slices(avctx)) < 0)
|
||||
return ret;
|
||||
if (s->version > 1) {
|
||||
if ((ret = encode_determine_slices(avctx)) < 0)
|
||||
return ret;
|
||||
|
||||
if ((ret = ff_ffv1_write_extradata(avctx)) < 0)
|
||||
return ret;
|
||||
if ((ret = ff_ffv1_write_extradata(avctx)) < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if ((ret = ff_ffv1_init_slice_contexts(s)) < 0)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user