You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/liboapvenc: set the encoder output to OAPV_CFG_VAL_AU_BS_FMT_NONE format
The only AU without bitstream format. Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
committed by
James Almer
parent
5d380e4431
commit
8087777e66
@ -307,6 +307,14 @@ static av_cold int liboapve_init(AVCodecContext *avctx)
|
|||||||
return AVERROR_EXTERNAL;
|
return AVERROR_EXTERNAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int value = OAPV_CFG_VAL_AU_BS_FMT_NONE;
|
||||||
|
int size = 4;
|
||||||
|
ret = oapve_config(apv->id, OAPV_CFG_SET_AU_BS_FMT, &value, &size);
|
||||||
|
if (OAPV_FAILED(ret)) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "Failed to set config for using encoder output format\n");
|
||||||
|
return AVERROR_EXTERNAL;
|
||||||
|
}
|
||||||
|
|
||||||
apv->ifrms.frm[FRM_IDX].imgb = apv_imgb_create(avctx);
|
apv->ifrms.frm[FRM_IDX].imgb = apv_imgb_create(avctx);
|
||||||
if (apv->ifrms.frm[FRM_IDX].imgb == NULL)
|
if (apv->ifrms.frm[FRM_IDX].imgb == NULL)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
Reference in New Issue
Block a user