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/jacosubdec.c | |
parent | fd23efb20b701e5074cfaa6e9afc0e176c5e771a (diff) | |
download | ffmpeg-98a776b5e32c3c7b535d34f9645757b242114d63.tar.gz |
avformat/subtitles: use av_packet_alloc() to allocate packets
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/jacosubdec.c')
-rw-r--r-- | libavformat/jacosubdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/jacosubdec.c b/libavformat/jacosubdec.c index 14221b166c..b44e3b7783 100644 --- a/libavformat/jacosubdec.c +++ b/libavformat/jacosubdec.c @@ -250,7 +250,7 @@ static int jacosub_read_header(AVFormatContext *s) /* SHIFT and TIMERES affect the whole script so packet timing can only be * done in a second pass */ for (i = 0; i < jacosub->q.nb_subs; i++) { - AVPacket *sub = &jacosub->q.subs[i]; + AVPacket *sub = jacosub->q.subs[i]; read_ts(jacosub, sub->data, &sub->pts, &sub->duration); } ff_subtitles_queue_finalize(s, &jacosub->q); |