mirror of https://git.ffmpeg.org/ffmpeg.git
ffv1enc: expose ff_ffv1_write_extradata
This commit is contained in:
parent
a13ef376da
commit
f4b5068c3b
|
@ -392,8 +392,10 @@ static void write_header(FFV1Context *f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int write_extradata(FFV1Context *f)
|
av_cold int ff_ffv1_write_extradata(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
|
FFV1Context *f = avctx->priv_data;
|
||||||
|
|
||||||
RangeCoder c;
|
RangeCoder c;
|
||||||
uint8_t state[CONTEXT_SIZE];
|
uint8_t state[CONTEXT_SIZE];
|
||||||
int i, j, k;
|
int i, j, k;
|
||||||
|
@ -740,7 +742,7 @@ av_cold int ff_ffv1_encode_init(AVCodecContext *avctx)
|
||||||
if ((ret = encode_determine_slices(avctx)) < 0)
|
if ((ret = encode_determine_slices(avctx)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if ((ret = write_extradata(s)) < 0)
|
if ((ret = ff_ffv1_write_extradata(avctx)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,5 +26,6 @@
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
|
|
||||||
av_cold int ff_ffv1_encode_init(AVCodecContext *avctx);
|
av_cold int ff_ffv1_encode_init(AVCodecContext *avctx);
|
||||||
|
av_cold int ff_ffv1_write_extradata(AVCodecContext *avctx);
|
||||||
|
|
||||||
#endif /* AVCODEC_FFV1ENC_H */
|
#endif /* AVCODEC_FFV1ENC_H */
|
||||||
|
|
Loading…
Reference in New Issue