comparison mov.c @ 3162:5e03e5577f79 libavformat

return ENOMEM
author bcoudurier
date Fri, 21 Mar 2008 10:48:22 +0000
parents 60be75aa8c47
children b8c9d2e2b227
comparison
equal deleted inserted replaced
3161:60be75aa8c47 3162:5e03e5577f79
1200 AVStream *st; 1200 AVStream *st;
1201 MOVStreamContext *sc; 1201 MOVStreamContext *sc;
1202 int ret; 1202 int ret;
1203 1203
1204 st = av_new_stream(c->fc, c->fc->nb_streams); 1204 st = av_new_stream(c->fc, c->fc->nb_streams);
1205 if (!st) return -2; 1205 if (!st) return AVERROR(ENOMEM);
1206 sc = av_mallocz(sizeof(MOVStreamContext)); 1206 sc = av_mallocz(sizeof(MOVStreamContext));
1207 if (!sc) return AVERROR(ENOMEM); 1207 if (!sc) return AVERROR(ENOMEM);
1208 1208
1209 st->priv_data = sc; 1209 st->priv_data = sc;
1210 st->codec->codec_type = CODEC_TYPE_DATA; 1210 st->codec->codec_type = CODEC_TYPE_DATA;