mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-25 00:49:59 +08:00
Replace all remaining occurrences of AVERROR_NOMEM with
AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump. Originally committed as revision 22791 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -83,7 +83,7 @@ static int amr_handle_packet(AVFormatContext *ctx,
|
||||
/* Everything except the codec mode request byte should be output. */
|
||||
if (av_new_packet(pkt, len - 1)) {
|
||||
av_log(ctx, AV_LOG_ERROR, "Out of memory\n");
|
||||
return AVERROR_NOMEM;
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
pkt->stream_index = st->index;
|
||||
ptr = pkt->data;
|
||||
|
||||
Reference in New Issue
Block a user