summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-10 21:50:06 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-11 14:41:36 +0200
commite65897f3eec371719768698fdee415db446e4311 (patch)
treef319cbb496e12d7618aa8c0f8639fb3686061117 /libavfilter
parent77ace1ffea6bd40d44326c1a87a55db0937877f1 (diff)
avfilter/vf_subtitles: Remove unnecessary initialization of AVPacket
av_read_frame() can handle uninitialized packets. Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_subtitles.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c
index 2d3145bf2d..a045375b2d 100644
--- a/libavfilter/vf_subtitles.c
+++ b/libavfilter/vf_subtitles.c
@@ -449,9 +449,6 @@ static av_cold int init_subtitles(AVFilterContext *ctx)
ass_process_codec_private(ass->track,
dec_ctx->subtitle_header,
dec_ctx->subtitle_header_size);
- av_init_packet(&pkt);
- pkt.data = NULL;
- pkt.size = 0;
while (av_read_frame(fmt, &pkt) >= 0) {
int i, got_subtitle;
AVSubtitle sub = {0};