]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mmvideo.c
flacdec: simplify sample buffer handling
[ffmpeg] / libavcodec / mmvideo.c
index 6c81fd4ce192fa76d6878cf63ef38a55f85c39fd..2187d7f585c2c2e9e4cce05d91f41187e30bc930 100644 (file)
@@ -84,8 +84,7 @@ static int mm_decode_pal(MmContext *s)
  */
 static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert)
 {
-    int i, x, y;
-    i=0; x=0; y=0;
+    int x = 0, y = 0;
 
     while (bytestream2_get_bytes_left(&s->gb) > 0) {
         int run_length, color;
@@ -229,7 +228,7 @@ static av_cold int mm_decode_end(AVCodecContext *avctx)
 AVCodec ff_mmvideo_decoder = {
     .name           = "mmvideo",
     .type           = AVMEDIA_TYPE_VIDEO,
-    .id             = CODEC_ID_MMVIDEO,
+    .id             = AV_CODEC_ID_MMVIDEO,
     .priv_data_size = sizeof(MmContext),
     .init           = mm_decode_init,
     .close          = mm_decode_end,