mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-29 11:42:02 +08:00
avcodec/hevcdec: check for DOVI configuration record in AVCodecContext side data
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -1403,6 +1403,16 @@ int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
|
||||
return ret;
|
||||
}
|
||||
|
||||
const AVPacketSideData *ff_get_coded_side_data(const AVCodecContext *avctx,
|
||||
enum AVPacketSideDataType type)
|
||||
{
|
||||
for (int i = 0; i < avctx->nb_coded_side_data; i++)
|
||||
if (avctx->coded_side_data[i].type == type)
|
||||
return &avctx->coded_side_data[i];
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static int add_metadata_from_side_data(const AVPacket *avpkt, AVFrame *frame)
|
||||
{
|
||||
size_t size;
|
||||
|
||||
Reference in New Issue
Block a user