mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-09 02:30:45 +08:00
avformat: move priv_pts from AVStream to an internal struct
It has no reason to be in a public header, even if defined as private. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -123,8 +123,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
|
||||
int64_t av_stream_get_end_pts(const AVStream *st)
|
||||
{
|
||||
if (st->priv_pts) {
|
||||
return st->priv_pts->val;
|
||||
if (st->internal->priv_pts) {
|
||||
return st->internal->priv_pts->val;
|
||||
} else
|
||||
return AV_NOPTS_VALUE;
|
||||
}
|
||||
@@ -4263,6 +4263,7 @@ static void free_stream(AVStream **pst)
|
||||
av_bsf_free(&st->internal->bsfcs[i]);
|
||||
av_freep(&st->internal->bsfcs);
|
||||
}
|
||||
av_freep(&st->internal->priv_pts);
|
||||
av_bsf_free(&st->internal->extract_extradata.bsf);
|
||||
av_packet_free(&st->internal->extract_extradata.pkt);
|
||||
}
|
||||
@@ -4282,7 +4283,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
av_freep(&st->info->duration_error);
|
||||
av_freep(&st->info);
|
||||
av_freep(&st->recommended_encoder_configuration);
|
||||
av_freep(&st->priv_pts);
|
||||
|
||||
av_freep(pst);
|
||||
}
|
||||
|
Reference in New Issue
Block a user