mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 03:09:51 +00:00
Merge branch 'master' of gitee.com:openharmony/third_party_ffmpeg into upgrade
Signed-off-by: cyberbox <468042667@qq.com>
This commit is contained in:
commit
017f37c726
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user