Mercurial > libavformat.hg
comparison electronicarts.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 |
---|---|
182 | 182 |
183 #if 0 | 183 #if 0 |
184 /* initialize the video decoder stream */ | 184 /* initialize the video decoder stream */ |
185 st = av_new_stream(s, 0); | 185 st = av_new_stream(s, 0); |
186 if (!st) | 186 if (!st) |
187 return AVERROR_NOMEM; | 187 return AVERROR(ENOMEM); |
188 av_set_pts_info(st, 33, 1, 90000); | 188 av_set_pts_info(st, 33, 1, 90000); |
189 ea->video_stream_index = st->index; | 189 ea->video_stream_index = st->index; |
190 st->codec->codec_type = CODEC_TYPE_VIDEO; | 190 st->codec->codec_type = CODEC_TYPE_VIDEO; |
191 st->codec->codec_id = CODEC_ID_EA_MJPEG; | 191 st->codec->codec_id = CODEC_ID_EA_MJPEG; |
192 st->codec->codec_tag = 0; /* no fourcc */ | 192 st->codec->codec_tag = 0; /* no fourcc */ |
193 #endif | 193 #endif |
194 | 194 |
195 /* initialize the audio decoder stream */ | 195 /* initialize the audio decoder stream */ |
196 st = av_new_stream(s, 0); | 196 st = av_new_stream(s, 0); |
197 if (!st) | 197 if (!st) |
198 return AVERROR_NOMEM; | 198 return AVERROR(ENOMEM); |
199 av_set_pts_info(st, 33, 1, EA_SAMPLE_RATE); | 199 av_set_pts_info(st, 33, 1, EA_SAMPLE_RATE); |
200 st->codec->codec_type = CODEC_TYPE_AUDIO; | 200 st->codec->codec_type = CODEC_TYPE_AUDIO; |
201 st->codec->codec_id = CODEC_ID_ADPCM_EA; | 201 st->codec->codec_id = CODEC_ID_ADPCM_EA; |
202 st->codec->codec_tag = 0; /* no tag */ | 202 st->codec->codec_tag = 0; /* no tag */ |
203 st->codec->channels = ea->num_channels; | 203 st->codec->channels = ea->num_channels; |