-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AAC fmtp #52
Add AAC fmtp #52
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, though I'm not much familiar with RFC 3640 :D
🥇
do: {rest, %{fmtp | config: value}} | ||
end | ||
|
||
defp parse_param(["mode=" <> value | rest], fmtp) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity: are those field names guaranteed to be unique? (By which I mean - is it guaranteed, that there is no other RFC, that adds mode
field for fmtp parameter)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, even in this PR this is visible. The RFC3640 specifies a profile-level-id
, but such a field is already defined in H264 section in the struct, so I don't think we need a separate one.
I think we could use the struct we already have (along with some type specification) as a |
I think it's worth considering whether we could implement parsing fmtp params more concisely, than having a separate function call for each one