[vlc-commits] avcodec: map some chroma_location
Jean-Baptiste Kempf
git at videolan.org
Sun Apr 17 11:18:35 CEST 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Apr 17 11:17:35 2016 +0200| [3d86a359313440f49ff230141ddb685627924e5c] | committer: Jean-Baptiste Kempf
avcodec: map some chroma_location
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d86a359313440f49ff230141ddb685627924e5c
---
modules/codec/avcodec/video.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 3ca616b..ad925f6 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -252,6 +252,21 @@ static int lavc_GetVideoFormat(decoder_t *dec, video_format_t *restrict fmt,
break;
}
+ switch( ctx->chroma_sample_location )
+ {
+ case AVCHROMA_LOC_LEFT:
+ fmt->chroma_location = CHROMA_LOCATION_LEFT;
+ break;
+ case AVCHROMA_LOC_CENTER:
+ fmt->chroma_location = CHROMA_LOCATION_CENTER;
+ break;
+ case AVCHROMA_LOC_TOPLEFT:
+ fmt->chroma_location = CHROMA_LOCATION_TOP_LEFT;
+ break;
+ default:
+ break;
+ }
+
return 0;
}
More information about the vlc-commits
mailing list