Skip to content

Commit

Permalink
Fix parsing of audio codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lqp1 committed Nov 19, 2020
1 parent fa9d264 commit 1c53eb0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ctl/wfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,7 @@ int wfd_audio_codecs_from_string(const char *l,
return r;
}

l += 16;
if(WFD_AUDIO_FORMAT_LPCM == c->caps[i].format) {
++ l;
}
l = strchr(l, ',') + 1;

free(f);
f = NULL;
Expand Down

0 comments on commit 1c53eb0

Please sign in to comment.