]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/8bps.c
Fix compilation on x64.
[ffmpeg] / libavcodec / 8bps.c
index 28187b03601acf91e9469b577025421402abb2d1..ff5795533b48a78aecb4c88d68c1798a0d803766 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 /**
- * @file libavcodec/8bps.c
+ * @file
  * QT 8BPS Video Decoder by Roberto Togni
  * For more information about the 8BPS format, visit:
  *   http://www.pcisys.net/~melanson/codecs/
@@ -159,10 +159,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
 
         c->pic.data[0] = NULL;
 
-    if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) {
-        return 1;
-    }
-
         switch (avctx->bits_per_coded_sample) {
                 case 8:
                         avctx->pix_fmt = PIX_FMT_PAL8;
@@ -225,7 +221,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
 
 AVCodec eightbps_decoder = {
         "8bps",
-        CODEC_TYPE_VIDEO,
+        AVMEDIA_TYPE_VIDEO,
         CODEC_ID_8BPS,
         sizeof(EightBpsContext),
         decode_init,