mirror of https://git.ffmpeg.org/ffmpeg.git
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)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if ((ret = encode_determine_slices(avctx)) < 0)
|
if (s->version > 1) {
|
||||||
return ret;
|
if ((ret = encode_determine_slices(avctx)) < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
if ((ret = ff_ffv1_write_extradata(avctx)) < 0)
|
if ((ret = ff_ffv1_write_extradata(avctx)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
if ((ret = ff_ffv1_init_slice_contexts(s)) < 0)
|
if ((ret = ff_ffv1_init_slice_contexts(s)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue