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?
lu
--
Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel