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

Unified · Split

libavfilter/vf_subtitles.c+0−3
@@ -449,9 +449,6 @@ static av_cold int init_subtitles(AVFilterContext *ctx) · 448 unmodified lines
449 ass_process_codec_private(ass->track,449 ass_process_codec_private(ass->track,
450 dec_ctx->subtitle_header,450 dec_ctx->subtitle_header,
451 dec_ctx->subtitle_header_size);451 dec_ctx->subtitle_header_size);
452 av_init_packet(&pkt);
453 pkt.data = NULL;
454 pkt.size = 0;
455 while (av_read_frame(fmt, &pkt) >= 0) {452 while (av_read_frame(fmt, &pkt) >= 0) {
456 int i, got_subtitle;453 int i, got_subtitle;
457 AVSubtitle sub = {0};454 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