[FFmpeg-devel] [PATCH]Make high bit-depth libvpx samples show the correct bit depth

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Sep 16 22:30:05 CEST 2014


Hi!

Attached patch fixes ffmpeg -i output for high-bitrate vp9 files here.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
index 8312460..6b6e899 100644
--- a/libavcodec/libvpxdec.c
+++ b/libavcodec/libvpxdec.c
@@ -56,7 +56,9 @@ static av_cold int vpx_init(AVCodecContext *avctx,
         return AVERROR(EINVAL);
     }
 
+#if !defined(VPX_IMG_FMT_HIGHBITDEPTH)
     avctx->pix_fmt = AV_PIX_FMT_YUV420P;
+#endif
     return 0;
 }
 


More information about the ffmpeg-devel mailing list