comparison msnwc_tcp.c @ 5930:08cd1179a20d libavformat

Replace all remaining occurrences of AVERROR_NOMEM with AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump.
author stefano
date Sat, 03 Apr 2010 14:15:00 +0000
parents 11bb10c37225
children
comparison
equal deleted inserted replaced
5929:903f1b00cbc6 5930:08cd1179a20d
75 AVCodecContext *codec; 75 AVCodecContext *codec;
76 AVStream *st; 76 AVStream *st;
77 77
78 st = av_new_stream(ctx, 0); 78 st = av_new_stream(ctx, 0);
79 if(!st) 79 if(!st)
80 return AVERROR_NOMEM; 80 return AVERROR(ENOMEM);
81 81
82 codec = st->codec; 82 codec = st->codec;
83 codec->codec_type = AVMEDIA_TYPE_VIDEO; 83 codec->codec_type = AVMEDIA_TYPE_VIDEO;
84 codec->codec_id = CODEC_ID_MIMIC; 84 codec->codec_id = CODEC_ID_MIMIC;
85 codec->codec_tag = MKTAG('M', 'L', '2', '0'); 85 codec->codec_tag = MKTAG('M', 'L', '2', '0');