You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc: override decode return value only in case of error
Fixes Ticket #5350
Regression since 2941282124
.
This commit is contained in:
@@ -2633,7 +2633,9 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
|
|||||||
&& *got_sub_ptr && sub->num_rects) {
|
&& *got_sub_ptr && sub->num_rects) {
|
||||||
const AVRational tb = avctx->pkt_timebase.num ? avctx->pkt_timebase
|
const AVRational tb = avctx->pkt_timebase.num ? avctx->pkt_timebase
|
||||||
: avctx->time_base;
|
: avctx->time_base;
|
||||||
ret = convert_sub_to_old_ass_form(sub, avpkt, tb);
|
int err = convert_sub_to_old_ass_form(sub, avpkt, tb);
|
||||||
|
if (err < 0)
|
||||||
|
ret = err;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user