Revision 7aa0118c libavformat/rtpdec_h264.c

View differences:

libavformat/rtpdec_h264.c
69 69
#define DEAD_COOKIE (0xdeaddead)        ///< Cookie for the extradata; once it is freed.
70 70

  
71 71
/* ---------------- private code */
72
static void sdp_parse_fmtp_config_h264(AVStream * stream,
72
static int sdp_parse_fmtp_config_h264(AVStream * stream,
73 73
                                       PayloadContext * h264_data,
74 74
                                       char *attr, char *value)
75 75
{
......
155 155
                    codec->extradata_size+= sizeof(start_sequence)+packet_size;
156 156
                } else {
157 157
                    av_log(codec, AV_LOG_ERROR, "Unable to allocate memory for extradata!");
158
                    return AVERROR(ENOMEM);
158 159
                }
159 160
            }
160 161
        }
161 162
        av_log(codec, AV_LOG_DEBUG, "Extradata set to %p (size: %d)!", codec->extradata, codec->extradata_size);
162 163
    }
164
    return 0;
163 165
}
164 166

  
165 167
// return 0 on packet, no more left, 1 on packet, 1 on partial packet...

Also available in: Unified diff