1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/ccaption_dec: return the number of bytes decoded

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
wang-bin
2023-02-11 16:04:05 +08:00
committed by Anton Khirnov
parent 2aec86695a
commit e16b874b6a

View File

@@ -922,7 +922,7 @@ static int decode(AVCodecContext *avctx, AVSubtitle *sub,
}
*got_sub = sub->num_rects > 0;
return ret;
return avpkt->size;
}
#define OFFSET(x) offsetof(CCaptionSubContext, x)