comparison apetag.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 8e0b6203dfb5
children
comparison
equal deleted inserted replaced
5929:903f1b00cbc6 5930:08cd1179a20d
54 } 54 }
55 if (size >= UINT_MAX) 55 if (size >= UINT_MAX)
56 return -1; 56 return -1;
57 value = av_malloc(size+1); 57 value = av_malloc(size+1);
58 if (!value) 58 if (!value)
59 return AVERROR_NOMEM; 59 return AVERROR(ENOMEM);
60 get_buffer(pb, value, size); 60 get_buffer(pb, value, size);
61 value[size] = 0; 61 value[size] = 0;
62 av_metadata_set2(&s->metadata, key, value, AV_METADATA_DONT_STRDUP_VAL); 62 av_metadata_set2(&s->metadata, key, value, AV_METADATA_DONT_STRDUP_VAL);
63 return 0; 63 return 0;
64 } 64 }