Mercurial > libavformat.hg
comparison psxstr.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 |
---|---|
176 str->channels[channel].height = AV_RL16(§or[0x2A]); | 176 str->channels[channel].height = AV_RL16(§or[0x2A]); |
177 | 177 |
178 /* allocate a new AVStream */ | 178 /* allocate a new AVStream */ |
179 st = av_new_stream(s, 0); | 179 st = av_new_stream(s, 0); |
180 if (!st) | 180 if (!st) |
181 return AVERROR_NOMEM; | 181 return AVERROR(ENOMEM); |
182 av_set_pts_info(st, 64, 1, 15); | 182 av_set_pts_info(st, 64, 1, 15); |
183 | 183 |
184 str->channels[channel].video_stream_index = st->index; | 184 str->channels[channel].video_stream_index = st->index; |
185 | 185 |
186 st->codec->codec_type = CODEC_TYPE_VIDEO; | 186 st->codec->codec_type = CODEC_TYPE_VIDEO; |
205 (sector[0x13] & 0x10) ? 8 : 4; | 205 (sector[0x13] & 0x10) ? 8 : 4; |
206 | 206 |
207 /* allocate a new AVStream */ | 207 /* allocate a new AVStream */ |
208 st = av_new_stream(s, 0); | 208 st = av_new_stream(s, 0); |
209 if (!st) | 209 if (!st) |
210 return AVERROR_NOMEM; | 210 return AVERROR(ENOMEM); |
211 av_set_pts_info(st, 64, 128, str->channels[channel].sample_rate); | 211 av_set_pts_info(st, 64, 128, str->channels[channel].sample_rate); |
212 | 212 |
213 str->channels[channel].audio_stream_index = st->index; | 213 str->channels[channel].audio_stream_index = st->index; |
214 | 214 |
215 fmt = sector[0x13]; | 215 fmt = sector[0x13]; |