pcaputil: Support parsing decoder options from FMTP input#4205
pcaputil: Support parsing decoder options from FMTP input#4205sauwming merged 1 commit intopjsip:masterfrom
Conversation
|
It's rather strange to pass the entire SDP as a parameter. |
|
How do I parse it and set the params in |
|
You can make it simpler by requiring the parameter to have no whitespace, so:
|
So do you want me to factor this out? What about passing this to the codec? Should I also factor out parts of |
|
What I mean is to add new parameter |
9ff932e to
ac0cefa
Compare
ac0cefa to
4c99091
Compare
Done, with a small refactoring. |
|
The failed test looks unrelated to my changes. @sauwming please review. |
Some codecs need specific flags that are given in the SDP media description. For example, AMR has octet-align=1. Instead of adding distinct flags for each codec, allow pcaputil to accept the fmtp content and parse the attributes from there. Example: pcaputil \ --dst-port=52422 \ --codec=AMR/8000 \ --codec-fmtp='mode-set=0,1,2,3,4,5,6,7;octet-align=1' \ amr.pcap amr.wav
4c99091 to
d20063d
Compare
Some codecs need specific flags that are given in the SDP media description. For example, AMR has octet-align=1. Instead of adding distinct flags for each codec, allow pcaputil to accept the fmtp content and parse the attributes from there. Example: pcaputil \ --dst-port=52422 \ --codec=AMR/8000 \ --codec-fmtp='mode-set=0,1,2,3,4,5,6,7;octet-align=1' \ amr.pcap amr.wav
pcaputil: Support parsing decoder options from FMTP input
Some codecs need specific flags that are given in the SDP media description. For example, AMR has octet-align=1.
Instead of adding distinct flags for each codec, allow pcaputil to accept the fmtp content and parse the attributes from there.
Example: