comparison ogg.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 da41753f1220
children b21c2af60bc9
comparison
equal deleted inserted replaced
2272:8963d9ed1859 2273:7eb456c4ed8a
214 214
215 /* currently only one vorbis stream supported */ 215 /* currently only one vorbis stream supported */
216 216
217 ast = av_new_stream(avfcontext, 0) ; 217 ast = av_new_stream(avfcontext, 0) ;
218 if(!ast) 218 if(!ast)
219 return AVERROR_NOMEM ; 219 return AVERROR(ENOMEM) ;
220 av_set_pts_info(ast, 60, 1, AV_TIME_BASE); 220 av_set_pts_info(ast, 60, 1, AV_TIME_BASE);
221 221
222 codec= &ast->codec; 222 codec= &ast->codec;
223 codec->codec_type = CODEC_TYPE_AUDIO; 223 codec->codec_type = CODEC_TYPE_AUDIO;
224 codec->codec_id = CODEC_ID_VORBIS; 224 codec->codec_id = CODEC_ID_VORBIS;