]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/flashsvenc.c
Replace remaining occurrences of CODEC_TYPE_* with AVMEDIA_TYPE*
[ffmpeg] / libavcodec / flashsvenc.c
index 3512b026989af0d8105a82175e19488130e6696c..9093969cfe3deab6d36797e173fcc1775aace6da 100644 (file)
@@ -23,7 +23,7 @@
 /* Encoding development sponsored by http://fh-campuswien.ac.at */
 
 /**
- * @file libavcodec/flashsvenc.c
+ * @file
  * Flash Screen Video encoder
  * @author Alex Beregszaszi
  * @author Benjamin Larsson
@@ -108,10 +108,6 @@ static av_cold int flashsv_encode_init(AVCodecContext *avctx)
         return -1;
     }
 
-    if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) {
-        return -1;
-    }
-
     // Needed if zlib unused or init aborted before deflateInit
     memset(&(s->zstream), 0, sizeof(z_stream));
 
@@ -284,9 +280,9 @@ static av_cold int flashsv_encode_end(AVCodecContext *avctx)
     return 0;
 }
 
-AVCodec flashsv_encoder = {
+AVCodec ff_flashsv_encoder = {
     "flashsv",
-    CODEC_TYPE_VIDEO,
+    AVMEDIA_TYPE_VIDEO,
     CODEC_ID_FLASHSV,
     sizeof(FlashSVContext),
     flashsv_encode_init,