[FFmpeg-devel] [PATCH 06/48] avcodec/mpegvideo: Add MPVContext typedef

Andreas Rheinhardt ffmpegagent at gmail.com
Mon Jun 23 16:36:06 EEST 2025


From: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

MpegEncContext is also used for decoding, so it is a misnomer.
This commit therefore adds MPVContext as typedef for it in order
to gradually switch the code to the new name (in line with
MPVEncContext).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/mpegvideo.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 4ff5e8906d..fe3ae97f5d 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -332,6 +332,7 @@ typedef struct MpegEncContext {
     ERContext er;
 } MpegEncContext;
 
+typedef MpegEncContext MPVContext;
 
 /**
  * Set the given MpegEncContext to common defaults (same for encoding
-- 
ffmpeg-codebot



More information about the ffmpeg-devel mailing list