]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vda_h264.c
Support reading 64bit sgi images.
[ffmpeg] / libavcodec / vda_h264.c
index 5d624ac13265b77905bb19f7e6a90cc44ef99571..254268f558011e5505b108dc0e219421adfbc803 100644 (file)
@@ -65,7 +65,7 @@ static int end_frame(AVCodecContext *avctx)
 {
     H264Context *h = avctx->priv_data;
     struct vda_context *vda_ctx = avctx->hwaccel_context;
-    AVFrame *frame = (AVFrame*)h->s.current_picture_ptr;
+    AVFrame *frame = &h->s.current_picture_ptr->f;
     int status;
 
     if (!vda_ctx->decoder || !vda_ctx->bitstream)
@@ -86,7 +86,6 @@ AVHWAccel ff_h264_vda_hwaccel = {
     .type           = AVMEDIA_TYPE_VIDEO,
     .id             = CODEC_ID_H264,
     .pix_fmt        = PIX_FMT_VDA_VLD,
-    .capabilities   = 0,
     .start_frame    = start_frame,
     .decode_slice   = decode_slice,
     .end_frame      = end_frame,