summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/img_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/img_format.c b/video/img_format.c
index dfee130090..dfb82d2081 100644
--- a/video/img_format.c
+++ b/video/img_format.c
@@ -161,7 +161,7 @@ static struct mp_imgfmt_desc get_avutil_fmt(enum PixelFormat fmt)
struct mp_imgfmt_desc desc = {
.id = mpfmt,
.avformat = fmt,
- .name = mp_imgfmt_to_name(desc.id),
+ .name = mp_imgfmt_to_name(mpfmt),
.chroma_xs = pd->log2_chroma_w,
.chroma_ys = pd->log2_chroma_h,
};