!3 【轻量级 PR】:fix musl build

Merge pull request !3 from appoe/N/A
This commit is contained in:
openharmony_ci 2021-07-30 11:02:46 +00:00 committed by Gitee
commit 075dbb970a

View File

@ -1220,7 +1220,7 @@ static void update_initial_durations(AVFormatContext *s, AVStream *st,
if (!st->internal->avctx->has_b_frames)
pktl->pkt.pts = cur_dts;
// if (st->codecpar->codec_type != AVMEDIA_TYPE_AUDIO)
pktl->pkt.duration = duration;
pktl->pkt.duration = duration;
} else
break;
cur_dts = pktl->pkt.dts + pktl->pkt.duration;