mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-28 03:13:08 +08:00
avcodec/decode: Reindent after previous commits
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
@@ -1026,7 +1026,7 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
|
|||||||
int *got_sub_ptr,
|
int *got_sub_ptr,
|
||||||
AVPacket *avpkt)
|
AVPacket *avpkt)
|
||||||
{
|
{
|
||||||
int i, ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (!avpkt->data && avpkt->size) {
|
if (!avpkt->data && avpkt->size) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "invalid packet: NULL data, size != 0\n");
|
av_log(avctx, AV_LOG_ERROR, "invalid packet: NULL data, size != 0\n");
|
||||||
@@ -1080,7 +1080,7 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
|
|||||||
else if (avctx->codec_descriptor->props & AV_CODEC_PROP_TEXT_SUB)
|
else if (avctx->codec_descriptor->props & AV_CODEC_PROP_TEXT_SUB)
|
||||||
sub->format = 1;
|
sub->format = 1;
|
||||||
|
|
||||||
for (i = 0; i < sub->num_rects; i++) {
|
for (unsigned i = 0; i < sub->num_rects; i++) {
|
||||||
if (avctx->sub_charenc_mode != FF_SUB_CHARENC_MODE_IGNORE &&
|
if (avctx->sub_charenc_mode != FF_SUB_CHARENC_MODE_IGNORE &&
|
||||||
sub->rects[i]->ass && !utf8_check(sub->rects[i]->ass)) {
|
sub->rects[i]->ass && !utf8_check(sub->rects[i]->ass)) {
|
||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
|
|||||||
Reference in New Issue
Block a user