X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Frl2.c;h=f30cb01c1d91c1482c4d63f2d2172be70cb469d7;hb=f9505923a344a56c3ff36925adb7f0c3c9a3996c;hp=e23cc4b16bc3bb6f159698d2a791d9a9a08a997d;hpb=f67309cabe27af33dcfcfb61fe1df39af9b5ab46;p=ffmpeg diff --git a/libavcodec/rl2.c b/libavcodec/rl2.c index e23cc4b16bc..f30cb01c1d9 100644 --- a/libavcodec/rl2.c +++ b/libavcodec/rl2.c @@ -64,7 +64,7 @@ static void rl2_rle_decode(Rl2Context *s,const unsigned char* in,int size, const unsigned char* back_frame = s->back_frame; const unsigned char* in_end = in + size; const unsigned char* out_end = out + stride * s->avctx->height; - unsigned char* line_end = out + s->avctx->width; + unsigned char* line_end; /** copy start of the background frame */ for(i=0;i<=base_y;i++){ @@ -222,7 +222,7 @@ static av_cold int rl2_decode_end(AVCodecContext *avctx) AVCodec ff_rl2_decoder = { .name = "rl2", .type = AVMEDIA_TYPE_VIDEO, - .id = CODEC_ID_RL2, + .id = AV_CODEC_ID_RL2, .priv_data_size = sizeof(Rl2Context), .init = rl2_decode_init, .close = rl2_decode_end,