|
@@ -2337,7 +2337,10 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, |
|
|
|
|
|
|
|
|
av_free_packet(&pkt_recoded); |
|
|
av_free_packet(&pkt_recoded); |
|
|
} |
|
|
} |
|
|
sub->format = !(avctx->codec_descriptor->props & AV_CODEC_PROP_BITMAP_SUB); |
|
|
|
|
|
|
|
|
if (avctx->codec_descriptor->props & AV_CODEC_PROP_BITMAP_SUB) |
|
|
|
|
|
sub->format = 0; |
|
|
|
|
|
else if (avctx->codec_descriptor->props & AV_CODEC_PROP_TEXT_SUB) |
|
|
|
|
|
sub->format = 1; |
|
|
avctx->pkt = NULL; |
|
|
avctx->pkt = NULL; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|