fixup! lavu: add RKMPP hwcontext

fix uninitialized hw_frames_ctx of mapped frames.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka
2024-11-19 16:28:43 +08:00
parent 411d2ec5d2
commit abfc47f288

View File

@@ -42,7 +42,7 @@ static const struct {
uint32_t drm_format;
} supported_formats[] = {
/* grayscale */
{ AV_PIX_FMT_GRAY8, DRM_FORMAT_R8 },
{ AV_PIX_FMT_GRAY8, DRM_FORMAT_R8, },
/* fully-planar YUV */
{ AV_PIX_FMT_YUV420P, DRM_FORMAT_YUV420, },
{ AV_PIX_FMT_YUV422P, DRM_FORMAT_YUV422, },
@@ -457,6 +457,7 @@ static int rkmpp_map_frame(AVHWFramesContext *hwfc,
dst->width = src->width;
dst->height = src->height;
dst->hw_frames_ctx = NULL;
err = ff_hwframe_map_create(src->hw_frames_ctx, dst, src,
&rkmpp_unmap_frame, map);