Revision fb4ca2cb

View differences:

libavformat/rtpdec_h264.c
385 385
        codec->height = atoi(p + 1); // skip the -
386 386
        codec->pix_fmt = PIX_FMT_YUV420P;
387 387
    } else if (av_strstart(p, "fmtp:", &p)) {
388
        char attr[256];
389
        char value[4096];
390

  
391
        // remove the protocol identifier..
392
        while (*p && *p == ' ') p++; // strip spaces.
393
        while (*p && *p != ' ') p++; // eat protocol identifier
394
        while (*p && *p == ' ') p++; // strip trailing spaces.
395

  
396
        /* loop on each attribute */
397
        while (ff_rtsp_next_attr_and_value
398
               (&p, attr, sizeof(attr), value, sizeof(value))) {
399
            /* grab the codec extra_data from the config parameter of the fmtp line */
400
            sdp_parse_fmtp_config_h264(stream, h264_data, attr, value);
401
        }
388
        return ff_parse_fmtp(stream, h264_data, p, sdp_parse_fmtp_config_h264);
402 389
    } else if (av_strstart(p, "cliprect:", &p)) {
403 390
        // could use this if we wanted.
404 391
    }

Also available in: Unified diff