Merge branch 'master' of gitee.com:openharmony/third_party_ffmpeg into upgrade

Signed-off-by: cyberbox <468042667@qq.com>
This commit is contained in:
cyberbox 2024-05-06 13:14:32 +00:00 committed by Gitee
commit 017f37c726
2 changed files with 5 additions and 1 deletions

View File

@ -386,6 +386,9 @@ static int xml_export(AVFilterContext *ctx, StreamContext *sc, const char* filen
FILE* f;
unsigned int pot3[5] = { 3*3*3*3, 3*3*3, 3*3, 3, 1 };
if (!sc->coarseend->last)
return AVERROR(EINVAL); // No frames ?
f = avpriv_fopen_utf8(filename, "w");
if (!f) {
int err = AVERROR(EINVAL);

View File

@ -3234,7 +3234,8 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
FFSWAP(struct Program, ts->prg[nb_prg], ts->prg[prg_idx]);
if (prg_idx >= nb_prg)
nb_prg++;
}
} else
nb_prg = 0;
}
}
ts->nb_prg = nb_prg;