[FFmpeg-devel] [PATCH 8/9] avformat/matroskadec: Use named constants instead of their value
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Fri Aug 11 13:43:27 EEST 2023
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavformat/matroskadec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index e6797b2f57..21f52ccab2 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -3038,7 +3038,8 @@ static int matroska_parse_tracks(AVFormatContext *s)
}
// add stream level stereo3d side data if it is a supported format
if (track->video.stereo_mode < MATROSKA_VIDEO_STEREOMODE_TYPE_NB &&
- track->video.stereo_mode != 10 && track->video.stereo_mode != 12) {
+ track->video.stereo_mode != MATROSKA_VIDEO_STEREOMODE_TYPE_ANAGLYPH_CYAN_RED &&
+ track->video.stereo_mode != MATROSKA_VIDEO_STEREOMODE_TYPE_ANAGLYPH_GREEN_MAG) {
int ret = mkv_stereo3d_conv(st, track->video.stereo_mode);
if (ret < 0)
return ret;
--
2.34.1
More information about the ffmpeg-devel
mailing list