mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
fixup! lavc/rkmppenc: add support for enabling intra refresh (GDR)
enable recovery point SEI for intra refresh. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
3dbfaebfeb
commit
7d0f880f0a
1 changed files with 2 additions and 1 deletions
|
|
@ -632,7 +632,8 @@ static int rkmpp_set_enc_cfg(AVCodecContext *avctx)
|
|||
|
||||
if (avctx->codec_id == AV_CODEC_ID_H264 ||
|
||||
avctx->codec_id == AV_CODEC_ID_HEVC) {
|
||||
sei_mode = r->udu_sei ? MPP_ENC_SEI_MODE_ONE_FRAME : MPP_ENC_SEI_MODE_DISABLE;
|
||||
sei_mode = (r->udu_sei || (r->intra_refresh && r->refresh_num))
|
||||
? MPP_ENC_SEI_MODE_ONE_FRAME : MPP_ENC_SEI_MODE_DISABLE;
|
||||
if ((ret = r->mapi->control(r->mctx, MPP_ENC_SET_SEI_CFG, &sei_mode)) != MPP_OK) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Failed to set SEI config: %d\n", ret);
|
||||
return AVERROR_EXTERNAL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue