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
1 changed files with 1 additions and 1 deletions

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)