mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/cbs: Mark init and close functions as av_cold
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
e4f7a2b003
commit
ad5040a442
@ -73,8 +73,8 @@ const enum AVCodecID ff_cbs_all_codec_ids[] = {
|
|||||||
AV_CODEC_ID_NONE
|
AV_CODEC_ID_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
int ff_cbs_init(CodedBitstreamContext **ctx_ptr,
|
av_cold int ff_cbs_init(CodedBitstreamContext **ctx_ptr,
|
||||||
enum AVCodecID codec_id, void *log_ctx)
|
enum AVCodecID codec_id, void *log_ctx)
|
||||||
{
|
{
|
||||||
CodedBitstreamContext *ctx;
|
CodedBitstreamContext *ctx;
|
||||||
const CodedBitstreamType *type;
|
const CodedBitstreamType *type;
|
||||||
@ -118,13 +118,13 @@ int ff_cbs_init(CodedBitstreamContext **ctx_ptr,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_cbs_flush(CodedBitstreamContext *ctx)
|
av_cold void ff_cbs_flush(CodedBitstreamContext *ctx)
|
||||||
{
|
{
|
||||||
if (ctx->codec->flush)
|
if (ctx->codec->flush)
|
||||||
ctx->codec->flush(ctx);
|
ctx->codec->flush(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_cbs_close(CodedBitstreamContext **ctx_ptr)
|
av_cold void ff_cbs_close(CodedBitstreamContext **ctx_ptr)
|
||||||
{
|
{
|
||||||
CodedBitstreamContext *ctx = *ctx_ptr;
|
CodedBitstreamContext *ctx = *ctx_ptr;
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ void ff_cbs_fragment_reset(CodedBitstreamFragment *frag)
|
|||||||
frag->data_bit_padding = 0;
|
frag->data_bit_padding = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_cbs_fragment_free(CodedBitstreamFragment *frag)
|
av_cold void ff_cbs_fragment_free(CodedBitstreamFragment *frag)
|
||||||
{
|
{
|
||||||
ff_cbs_fragment_reset(frag);
|
ff_cbs_fragment_reset(frag);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user