Mercurial > libavformat.hg
diff mpegtsenc.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 | 536e5527c1e0 |
children | 28ca2d77f997 |
line wrap: on
line diff
--- a/mpegtsenc.c Sat Apr 03 12:16:33 2010 +0000 +++ b/mpegtsenc.c Sat Apr 03 14:15:00 2010 +0000 @@ -433,7 +433,7 @@ st->codec->extradata_size > 0) { ts_st->adts = av_mallocz(sizeof(*ts_st->adts)); if (!ts_st->adts) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); if (ff_adts_decode_extradata(s, ts_st->adts, st->codec->extradata, st->codec->extradata_size) < 0) return -1; @@ -836,7 +836,7 @@ return -1; data = av_malloc(new_size); if (!data) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); ff_adts_write_frame_header(adts, data, pkt->size, adts->pce_size); if (adts->pce_size) { memcpy(data+ADTS_HEADER_SIZE, adts->pce_data, adts->pce_size);