avformat/mux: Don't allocate priv_pts separately

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2024-02-03 20:11:29 +01:00
parent ad9f644505
commit 71e1da4522
4 changed files with 8 additions and 17 deletions

View File

@@ -33,10 +33,7 @@
#if FF_API_GET_END_PTS
int64_t av_stream_get_end_pts(const AVStream *st)
{
if (cffstream(st)->priv_pts) {
return cffstream(st)->priv_pts->val;
} else
return AV_NOPTS_VALUE;
return cffstream(st)->priv_pts.val;
}
#endif