mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-09-26 12:51:48 +08:00
fixup! lavc/rkmppenc: add RKMPP H264 and HEVC encoder
mark init() and close() as av_cold. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
@@ -1063,7 +1063,7 @@ get:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int rkmpp_encode_close(AVCodecContext *avctx)
|
||||
static av_cold int rkmpp_encode_close(AVCodecContext *avctx)
|
||||
{
|
||||
RKMPPEncContext *r = avctx->priv_data;
|
||||
|
||||
@@ -1118,7 +1118,7 @@ static av_cold int init_hwframes_ctx(AVCodecContext *avctx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int rkmpp_encode_init(AVCodecContext *avctx)
|
||||
static av_cold int rkmpp_encode_init(AVCodecContext *avctx)
|
||||
{
|
||||
RKMPPEncContext *r = avctx->priv_data;
|
||||
enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE;
|
||||
|
Reference in New Issue
Block a user