]> git.sesse.net Git - ffmpeg/blobdiff - avconv_qsv.c
audiodsp/x86: clear the high bits of the order parameter on 64bit
[ffmpeg] / avconv_qsv.c
index 400cf22c8797d54a85febb9f92960143fbb89531..723c6e0224510fbbaf57704a17819588f98e4c7d 100644 (file)
@@ -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;