X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Froqvideo.h;h=a458ab21198efe29606e95182e608983695b925c;hb=bf807a5e874442aa3fe1b475459cdd509e34bff4;hp=3fe11c670bd23913ae74be8c345c98334f36a4ee;hpb=6071e4d87a9b257c3f7b5912825ede9caa757624;p=ffmpeg diff --git a/libavcodec/roqvideo.h b/libavcodec/roqvideo.h index 3fe11c670bd..a458ab21198 100644 --- a/libavcodec/roqvideo.h +++ b/libavcodec/roqvideo.h @@ -24,6 +24,7 @@ #include "libavutil/lfg.h" #include "avcodec.h" +#include "bytestream.h" #include "dsputil.h" typedef struct { @@ -53,8 +54,7 @@ typedef struct RoqContext { roq_cell cb2x2[256]; roq_qcell cb4x4[256]; - const unsigned char *buf; - int size; + GetByteContext gb; int width, height; /* Encoder only data */ @@ -69,7 +69,7 @@ typedef struct RoqContext { unsigned int framesSinceKeyframe; - AVFrame *frame_to_enc; + const AVFrame *frame_to_enc; uint8_t *out_buf; struct RoqTempData *tmpData; } RoqContext;