Skip to content

Commit

Permalink
demux_cue: only accept TRACK with AUDIO type
Browse files Browse the repository at this point in the history
Trying to playback something that is not audio is not so nice.

Ref #8322.
  • Loading branch information
Dudemanguy committed Feb 16, 2025
1 parent 46e58b6 commit d9476c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demux/cue.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ struct cue_file *mp_parse_cue(struct bstr data)
talloc_free(f);
return NULL;
case CUE_TRACK: {
if (bstr_find0(param, "AUDIO") == -1)
break;
MP_TARRAY_GROW(f, f->tracks, f->num_tracks);
f->num_tracks += 1;
cur_track = &f->tracks[f->num_tracks - 1];
Expand Down

0 comments on commit d9476c1

Please sign in to comment.