comparison rtpdec_amr.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 51ea3f882776
comparison
equal deleted inserted replaced
5929:903f1b00cbc6 5930:08cd1179a20d
81 speech_data = buf + 1 + frames; 81 speech_data = buf + 1 + frames;
82 82
83 /* Everything except the codec mode request byte should be output. */ 83 /* Everything except the codec mode request byte should be output. */
84 if (av_new_packet(pkt, len - 1)) { 84 if (av_new_packet(pkt, len - 1)) {
85 av_log(ctx, AV_LOG_ERROR, "Out of memory\n"); 85 av_log(ctx, AV_LOG_ERROR, "Out of memory\n");
86 return AVERROR_NOMEM; 86 return AVERROR(ENOMEM);
87 } 87 }
88 pkt->stream_index = st->index; 88 pkt->stream_index = st->index;
89 ptr = pkt->data; 89 ptr = pkt->data;
90 90
91 for (i = 0; i < frames; i++) { 91 for (i = 0; i < frames; i++) {