aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-11-15 05:30:24 +0100
committerLynne <dev@lynne.ee>2024-11-18 07:54:21 +0100
commitf4b5068c3b668e6e9fce881f2e838b9b860a88e9 (patch)
treee6aef839584359c8bc586cca8f51edaa01655b5a /libavcodec
parenta13ef376dadb1410deb12c5b153bf3d5a781d431 (diff)
downloadffmpeg-f4b5068c3b668e6e9fce881f2e838b9b860a88e9.tar.gz
ffv1enc: expose ff_ffv1_write_extradata
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ffv1enc.c6
-rw-r--r--libavcodec/ffv1enc.h1
2 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index b3bc9dad06..16fc9cd348 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -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;
uint8_t state[CONTEXT_SIZE];
int i, j, k;
@@ -740,7 +742,7 @@ av_cold int ff_ffv1_encode_init(AVCodecContext *avctx)
if ((ret = encode_determine_slices(avctx)) < 0)
return ret;
- if ((ret = write_extradata(s)) < 0)
+ if ((ret = ff_ffv1_write_extradata(avctx)) < 0)
return ret;
}
diff --git a/libavcodec/ffv1enc.h b/libavcodec/ffv1enc.h
index c062af0bf5..6850243ac1 100644
--- a/libavcodec/ffv1enc.h
+++ b/libavcodec/ffv1enc.h
@@ -26,5 +26,6 @@
#include "avcodec.h"
av_cold int ff_ffv1_encode_init(AVCodecContext *avctx);
+av_cold int ff_ffv1_write_extradata(AVCodecContext *avctx);
#endif /* AVCODEC_FFV1ENC_H */