]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vdpau_vp9.c
avcodec/parser: Remove deprecated av_parser_change
[ffmpeg] / libavcodec / vdpau_vp9.c
index f1ee4ac5e015c8beb5e0b2406aa4a17eed4a8dbd..a8609d647e39040d6d759d7bebf0de3f7960a5cd 100644 (file)
@@ -26,7 +26,7 @@
 #include "internal.h"
 #include "vp9data.h"
 #include "vp9dec.h"
-#include "hwaccel.h"
+#include "hwconfig.h"
 #include "vdpau.h"
 #include "vdpau_internal.h"
 
@@ -35,16 +35,15 @@ static int vdpau_vp9_start_frame(AVCodecContext *avctx,
 {
     VP9Context *s = avctx->priv_data;
     VP9SharedContext *h = &(s->s);
-    const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt);
-    if (!pixdesc) {
-        return AV_PIX_FMT_NONE;
-    }
-
     VP9Frame pic = h->frames[CUR_FRAME];
     struct vdpau_picture_context *pic_ctx = pic.hwaccel_picture_private;
     int i;
 
     VdpPictureInfoVP9 *info = &pic_ctx->info.vp9;
+    const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt);
+    if (!pixdesc) {
+        return AV_PIX_FMT_NONE;
+    }
 
     info->width = avctx->width;
     info->height = avctx->height;