diff options
author | James Almer <jamrial@gmail.com> | 2017-11-05 14:59:47 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-11-07 23:20:50 -0300 |
commit | cd1ff3e45d45ce8d733b4acc8e23444c1a227d07 (patch) | |
tree | c3f6b3dc413d55ba09e12441e81b6185d651e911 /libavformat/utils.c | |
parent | 2c2f25eb8920129ef3cfe6da2e1cefdedc485965 (diff) | |
download | ffmpeg-cd1ff3e45d45ce8d733b4acc8e23444c1a227d07.tar.gz |
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>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index cbfb78bf4d..2b2411ffe7 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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); } |