diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-03 20:11:29 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-07 10:22:18 +0100 |
commit | 71e1da4522de809e06cbc7cdca7de3fda794f255 (patch) | |
tree | b6a37eea82ac6afe6255f19dbd2519b3dbc283a1 /libavformat/mux_utils.c | |
parent | ad9f644505bddd8b7243d4d9927ca08d6f80e97a (diff) | |
download | ffmpeg-71e1da4522de809e06cbc7cdca7de3fda794f255.tar.gz |
avformat/mux: Don't allocate priv_pts separately
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/mux_utils.c')
-rw-r--r-- | libavformat/mux_utils.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/mux_utils.c b/libavformat/mux_utils.c index 3e63b8039a..c7ac2a9c97 100644 --- a/libavformat/mux_utils.c +++ b/libavformat/mux_utils.c @@ -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 |