Browse Source

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>
tags/n4.4
Andreas Rheinhardt 5 years ago
parent
commit
e65897f3ee
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavfilter/vf_subtitles.c

+ 0
- 3
libavfilter/vf_subtitles.c View File

@@ -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};


Loading…
Cancel
Save