vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | 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; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
