]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/argo.c
avcodec/avcodec: Free frame_thread_encoder on avcodec_open2() error
[ffmpeg] / libavcodec / argo.c
index 6b4d449935e70fde68360ca5aa64b0464ab2941b..0df66f1cee45a741826fc6df3aa036d079714761 100644 (file)
@@ -565,7 +565,7 @@ static int decode_rle(AVCodecContext *avctx, AVFrame *frame)
     GetByteContext *gb = &s->gb;
     const int w = frame->width;
     const int h = frame->height;
-    const int l = frame->linesize[0] / 4;
+    const int l = frame->linesize[0];
     uint8_t *dst = frame->data[0];
     int pos = 0, y = 0;
 
@@ -725,7 +725,7 @@ static av_cold int decode_close(AVCodecContext *avctx)
     return 0;
 }
 
-AVCodec ff_argo_decoder = {
+const AVCodec ff_argo_decoder = {
     .name           = "argo",
     .long_name      = NULL_IF_CONFIG_SMALL("Argonaut Games Video"),
     .type           = AVMEDIA_TYPE_VIDEO,