- const char *p;
- char value[4096], attr[25];
- int res = 0, i;
- AVStream *st = s->streams[st_index];
- AVCodecContext* codec = st->codec;
-
- if (av_strstart(line, "fmtp:", &p)) {
- // remove protocol identifier
- while (*p && *p == ' ') p++; // strip spaces
- while (*p && *p != ' ') p++; // eat protocol identifier
- while (*p && *p == ' ') p++; // strip trailing spaces
-
- while (ff_rtsp_next_attr_and_value(&p,
- attr, sizeof(attr),
- value, sizeof(value))) {
- if (!strcmp(attr, "config")) {
- res = parse_fmtp_config(codec, value);
-
- if (res < 0)
- return res;
- }
+ AVCodecContext *codec = stream->codec;
+ int res, i;
+
+ if (!strcmp(attr, "config")) {
+ res = parse_fmtp_config(codec, value);