!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) if (!st->internal->avctx->has_b_frames)
pktl->pkt.pts = cur_dts; pktl->pkt.pts = cur_dts;
// if (st->codecpar->codec_type != AVMEDIA_TYPE_AUDIO) // if (st->codecpar->codec_type != AVMEDIA_TYPE_AUDIO)
pktl->pkt.duration = duration; pktl->pkt.duration = duration;
} else } else
break; break;
cur_dts = pktl->pkt.dts + pktl->pkt.duration; cur_dts = pktl->pkt.dts + pktl->pkt.duration;