diff options
author | Sven Gothel <[email protected]> | 2015-10-05 13:49:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-10-05 13:49:40 +0200 |
commit | da45b374f0274fa014310c08164e67f7736c1f7d (patch) | |
tree | 03c4d9eaaafe5008fb51b3f9e949b6709cff0390 /src/jogl/native/libav | |
parent | 4e237f265146b4c1e00856f19a8794aabf54d12c (diff) |
Bug 1239: Add support for UYVY422 (swizzled YUYV422)
Diffstat (limited to 'src/jogl/native/libav')
-rw-r--r-- | src/jogl/native/libav/ffmpeg_impl_template.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jogl/native/libav/ffmpeg_impl_template.c b/src/jogl/native/libav/ffmpeg_impl_template.c index ca283ef52..589cc3f39 100644 --- a/src/jogl/native/libav/ffmpeg_impl_template.c +++ b/src/jogl/native/libav/ffmpeg_impl_template.c @@ -1148,8 +1148,10 @@ JNIEXPORT void JNICALL FF_FUNC(setStream0) #endif } else { vLinesize[0] = pAV->pVFrame->linesize[0]; - if( pAV->vPixFmt == PIX_FMT_YUYV422 ) { - // Stuff 2x 16bpp (YUYV) into one RGBA pixel! + if( pAV->vPixFmt == PIX_FMT_YUYV422 || + pAV->vPixFmt == PIX_FMT_UYVY422 ) + { + // Stuff 2x 16bpp (YUYV, UYVY) into one RGBA pixel! pAV->vTexWidth[0] = pAV->pVCodecCtx->width / 2; } else { pAV->vTexWidth[0] = pAV->pVCodecCtx->width; |