ffmpeg | branch: master | Anton Khirnov <an...@khirnov.net> | Wed Jul 13 09:16:35 2016 +0200| [8b7a9729aa162e2bbd571933f1aa40767f1ff47b] | committer: Anton Khirnov
avconv_qsv: use the actual pixel format provided by lavc Do not hardcode NV12. This allows 10bit decoding with -hwaccel qsv. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8b7a9729aa162e2bbd571933f1aa40767f1ff47b --- avconv_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avconv_qsv.c b/avconv_qsv.c index 400cf22..723c6e0 100644 --- a/avconv_qsv.c +++ b/avconv_qsv.c @@ -79,7 +79,7 @@ int qsv_init(AVCodecContext *s) frames_ctx->width = FFALIGN(s->coded_width, 32); frames_ctx->height = FFALIGN(s->coded_height, 32); frames_ctx->format = AV_PIX_FMT_QSV; - frames_ctx->sw_format = AV_PIX_FMT_NV12; + frames_ctx->sw_format = s->sw_pix_fmt; frames_ctx->initial_pool_size = 32; frames_hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog