diff options
author | James Almer <jamrial@gmail.com> | 2021-02-03 20:55:27 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-17 15:19:36 -0300 |
commit | 98a776b5e32c3c7b535d34f9645757b242114d63 (patch) | |
tree | d422611f35f42a0922bbb198cb90973b9d721782 /libavformat/mpsubdec.c | |
parent | fd23efb20b701e5074cfaa6e9afc0e176c5e771a (diff) |
avformat/subtitles: use av_packet_alloc() to allocate packets
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/mpsubdec.c')
-rw-r--r-- | libavformat/mpsubdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpsubdec.c b/libavformat/mpsubdec.c index 2e6dc883eb..c113be5eba 100644 --- a/libavformat/mpsubdec.c +++ b/libavformat/mpsubdec.c @@ -147,8 +147,8 @@ static int mpsub_read_header(AVFormatContext *s) if (common_factor > 1) { common_factor = av_gcd(pts_info.num, common_factor); for (i = 0; i < mpsub->q.nb_subs; i++) { - mpsub->q.subs[i].pts /= common_factor; - mpsub->q.subs[i].duration /= common_factor; + mpsub->q.subs[i]->pts /= common_factor; + mpsub->q.subs[i]->duration /= common_factor; } pts_info.num /= common_factor; } |