]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/roqvideodec.c
avcodec: Constify AVCodecs
[ffmpeg] / libavcodec / roqvideodec.c
index 93c6e9ddf3914d8a082975b3c202e12476e4ca2d..a2730af9226e9cc07e2254afcc8e5a46e0286e74 100644 (file)
@@ -39,7 +39,6 @@ static void roqvideo_decode_frame(RoqContext *ri, GetByteContext *gb)
     unsigned long chunk_size = 0;
     int i, j, k, nv1, nv2, vqflg = 0, vqflg_pos = -1;
     int vqid, xpos, ypos, xp, yp, x, y, mx, my;
-    int frame_stats[2][4] = {{0},{0}};
     roq_qcell *qcell;
     int64_t chunk_start;
 
@@ -89,7 +88,6 @@ static void roqvideo_decode_frame(RoqContext *ri, GetByteContext *gb)
                     vqflg_pos = 7;
                 }
                 vqid = (vqflg >> (vqflg_pos * 2)) & 0x3;
-                frame_stats[0][vqid]++;
                 vqflg_pos--;
 
                 switch(vqid) {
@@ -124,7 +122,6 @@ static void roqvideo_decode_frame(RoqContext *ri, GetByteContext *gb)
                             vqflg_pos = 7;
                         }
                         vqid = (vqflg >> (vqflg_pos * 2)) & 0x3;
-                        frame_stats[1][vqid]++;
                         vqflg_pos--;
                         switch(vqid) {
                         case RoQ_ID_MOT:
@@ -236,7 +233,7 @@ static av_cold int roq_decode_end(AVCodecContext *avctx)
     return 0;
 }
 
-AVCodec ff_roq_decoder = {
+const AVCodec ff_roq_decoder = {
     .name           = "roqvideo",
     .long_name      = NULL_IF_CONFIG_SMALL("id RoQ video"),
     .type           = AVMEDIA_TYPE_VIDEO,