X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fpictordec.c;h=2d729778978989885833063228f2cc4d5e31960c;hb=530cd2893e020206262a146d567c707ef93baf31;hp=2a6e39158b82887171a4ca324390fe328af9cc00;hpb=183880cfc4aae53ce504e13337791cad5841c80c;p=ffmpeg diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index 2a6e39158b8..2d729778978 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -226,16 +226,17 @@ static int decode_frame(AVCodecContext *avctx, if (bits_per_plane == 8) { picmemset_8bpp(s, frame, val, run, &x, &y); if (y < 0) - break; + goto finish; } else { picmemset(s, frame, val, run, &x, &y, &plane, bits_per_plane); } } } } else { - avpriv_request_sample(s, "Uncompressed image"); + avpriv_request_sample(avctx, "Uncompressed image"); return avpkt->size; } +finish: *got_frame = 1; return avpkt->size; @@ -243,10 +244,10 @@ static int decode_frame(AVCodecContext *avctx, AVCodec ff_pictor_decoder = { .name = "pictor", + .long_name = NULL_IF_CONFIG_SMALL("Pictor/PC Paint"), .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_PICTOR, .priv_data_size = sizeof(PicContext), .decode = decode_frame, .capabilities = CODEC_CAP_DR1, - .long_name = NULL_IF_CONFIG_SMALL("Pictor/PC Paint"), };