]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dxva2_mpeg2.c
mips: add assembler flags for mips32r2 ISA and mhard-float
[ffmpeg] / libavcodec / dxva2_mpeg2.c
index e54eff09fb93d34b5c8f63cae0e92ab3a1ba26b7..dc9b103a71535ac5c6b633f915408bd5ab304020 100644 (file)
@@ -160,7 +160,7 @@ static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx,
 
     if (FAILED(IDirectXVideoDecoder_GetBuffer(ctx->decoder,
                                               DXVA2_BitStreamDateBufferType,
-                                              &dxva_data, &dxva_size)))
+                                              (void **)&dxva_data, &dxva_size)))
         return -1;
     current = dxva_data;
     end = dxva_data + dxva_size;
@@ -263,7 +263,7 @@ static int end_frame(AVCodecContext *avctx)
 AVHWAccel ff_mpeg2_dxva2_hwaccel = {
     .name           = "mpeg2_dxva2",
     .type           = AVMEDIA_TYPE_VIDEO,
-    .id             = CODEC_ID_MPEG2VIDEO,
+    .id             = AV_CODEC_ID_MPEG2VIDEO,
     .pix_fmt        = PIX_FMT_DXVA2_VLD,
     .start_frame    = start_frame,
     .decode_slice   = decode_slice,