History

avfilter/vf_subtitles: Remove unnecessary initialization of AVPacket

av_read_frame() can handle uninitialized packets.

Andreas Rheinhardt committed 6 years ago

Commit e65897f1 parent 77ace1f1 file · +0 −3Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_subtitles.c+0−3
@@ -449,9 +449,6 @@ static av_cold int init_subtitles(AVFilterContext *ctx) · 448 unmodified lines
449449 ass_process_codec_private(ass->track,
450450 dec_ctx->subtitle_header,
451451 dec_ctx->subtitle_header_size);
452− av_init_packet(&pkt);
453− pkt.data = NULL;
454− pkt.size = 0;
455452 while (av_read_frame(fmt, &pkt) >= 0) {
456453 int i, got_subtitle;
457454 AVSubtitle sub = {0};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t