comparison idcin.c @ 2273:7eb456c4ed8a libavformat

Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).
author takis
date Thu, 19 Jul 2007 15:21:30 +0000
parents 2f0154760e5f
children b21c2af60bc9
comparison
equal deleted inserted replaced
2272:8963d9ed1859 2273:7eb456c4ed8a
149 bytes_per_sample = get_le32(pb); 149 bytes_per_sample = get_le32(pb);
150 channels = get_le32(pb); 150 channels = get_le32(pb);
151 151
152 st = av_new_stream(s, 0); 152 st = av_new_stream(s, 0);
153 if (!st) 153 if (!st)
154 return AVERROR_NOMEM; 154 return AVERROR(ENOMEM);
155 av_set_pts_info(st, 33, 1, 90000); 155 av_set_pts_info(st, 33, 1, 90000);
156 idcin->video_stream_index = st->index; 156 idcin->video_stream_index = st->index;
157 st->codec->codec_type = CODEC_TYPE_VIDEO; 157 st->codec->codec_type = CODEC_TYPE_VIDEO;
158 st->codec->codec_id = CODEC_ID_IDCIN; 158 st->codec->codec_id = CODEC_ID_IDCIN;
159 st->codec->codec_tag = 0; /* no fourcc */ 159 st->codec->codec_tag = 0; /* no fourcc */
172 /* if sample rate is 0, assume no audio */ 172 /* if sample rate is 0, assume no audio */
173 if (sample_rate) { 173 if (sample_rate) {
174 idcin->audio_present = 1; 174 idcin->audio_present = 1;
175 st = av_new_stream(s, 0); 175 st = av_new_stream(s, 0);
176 if (!st) 176 if (!st)
177 return AVERROR_NOMEM; 177 return AVERROR(ENOMEM);
178 av_set_pts_info(st, 33, 1, 90000); 178 av_set_pts_info(st, 33, 1, 90000);
179 idcin->audio_stream_index = st->index; 179 idcin->audio_stream_index = st->index;
180 st->codec->codec_type = CODEC_TYPE_AUDIO; 180 st->codec->codec_type = CODEC_TYPE_AUDIO;
181 st->codec->codec_tag = 1; 181 st->codec->codec_tag = 1;
182 st->codec->channels = channels; 182 st->codec->channels = channels;