Skip to content

Commit d0f2325

Browse files
committed
Parse only the required packet metadata
1 parent 1af920e commit d0f2325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/lwindex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2779,7 +2779,7 @@ static int parse_index(lwlibav_file_handler_t* lwhp, lwlibav_video_decode_handle
27792779
lwlibav_audio_decode_handler_t* adhp, lwlibav_audio_output_handler_t* aohp, lwlibav_option_t* opt, FILE* index)
27802780
{
27812781
rewind(index);
2782-
lwindex_data_t* data = lwindex_parse(index, 1, 1);
2782+
lwindex_data_t* data = lwindex_parse(index, opt->force_audio_index == -2, opt->force_audio_index != -2);
27832783
if (!data) {
27842784
return -1;
27852785
}

0 commit comments

Comments
 (0)