]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hnm4video.c
qsvdec: only access hwaccel_context is the pixel format is QSV
[ffmpeg] / libavcodec / hnm4video.c
index 4220202e156c09b97ec6ce7ccdd0c9edc8e279a1..1dc6ed3baced41b73c0b7d1c9f0630d66a68d809 100644 (file)
@@ -37,8 +37,8 @@
 
 typedef struct Hnm4VideoContext {
     uint8_t version;
-    uint16_t width;
-    uint16_t height;
+    int width;
+    int height;
     uint8_t *current;
     uint8_t *previous;
     uint8_t *buffer1;
@@ -461,5 +461,5 @@ AVCodec ff_hnm4_video_decoder = {
     .init           = hnm_decode_init,
     .close          = hnm_decode_end,
     .decode         = hnm_decode_frame,
-    .capabilities   = CODEC_CAP_DR1,
+    .capabilities   = AV_CODEC_CAP_DR1,
 };