On Mon, 18 Jun 2012, Luca Barbato wrote:
On 06/18/2012 10:40 AM, Martin Storsjö wrote:
+static int ilbc_parse_fmtp(AVStream *stream, PayloadContext *data,
+ char *attr, char *value)
+{
+ if (!strcmp(attr, "mode")) {
+ int mode = atoi(value);
+ switch (mode) {
+ case 20:
+ stream->codec->block_align = 38;
+ break;
+ case 30:
+ stream->codec->block_align = 50;
+ break;
+ }
+ }
+ return 0;
+}
Anything different wouldn't be reported as error?
Good point, I'll try to improve it.
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel