aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/jacosubdec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-02-03 20:55:27 -0300
committerJames Almer <jamrial@gmail.com>2021-03-17 15:19:36 -0300
commit98a776b5e32c3c7b535d34f9645757b242114d63 (patch)
treed422611f35f42a0922bbb198cb90973b9d721782 /libavformat/jacosubdec.c
parentfd23efb20b701e5074cfaa6e9afc0e176c5e771a (diff)
downloadffmpeg-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.c2
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);