*/
#include <string.h>
-#include <unistd.h>
#include "roqvideo.h"
#include "bytestream.h"
{
int i, j, k;
int c_size = size*size/4;
- int *buf = points;
+ int *buf;
int *codebook = av_malloc(6*c_size*cbsize*sizeof(int));
int *closest_cb;
if (((avctx->width)&(avctx->width-1))||((avctx->height)&(avctx->height-1)))
av_log(avctx, AV_LOG_ERROR, "Warning: dimensions not power of two\n");
- if (avcodec_check_dimensions(avctx, avctx->width, avctx->height)) {
- av_log(avctx, AV_LOG_ERROR, "Invalid dimensions (%dx%d)\n",
- avctx->width, avctx->height);
- return -1;
- }
-
enc->width = avctx->width;
enc->height = avctx->height;
roq_encode_init,
roq_encode_frame,
roq_encode_end,
- .supported_framerates = (AVRational[]){{30,1}, {0,0}},
- .pix_fmts = (enum PixelFormat[]){PIX_FMT_YUV444P, PIX_FMT_NONE},
+ .supported_framerates = (const AVRational[]){{30,1}, {0,0}},
+ .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV444P, PIX_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("id RoQ video"),
};