comparison imgconvert.c @ 1031:19de1445beb2 libavcodec

use av_malloc() functions - added av_strdup and av_realloc()
author bellard
date Thu, 23 Jan 2003 23:03:09 +0000
parents e76fb91de4cc
children c6b3af81d79e
comparison
equal deleted inserted replaced
1030:801f2739264a 1031:19de1445beb2
1069 return -1; 1069 return -1;
1070 } 1070 }
1071 1071
1072 static void avpicture_free(AVPicture *picture) 1072 static void avpicture_free(AVPicture *picture)
1073 { 1073 {
1074 free(picture->data[0]); 1074 av_free(picture->data[0]);
1075 } 1075 }
1076 1076
1077 /* XXX: always use linesize. Return -1 if not supported */ 1077 /* XXX: always use linesize. Return -1 if not supported */
1078 int img_convert(AVPicture *dst, int dst_pix_fmt, 1078 int img_convert(AVPicture *dst, int dst_pix_fmt,
1079 AVPicture *src, int src_pix_fmt, 1079 AVPicture *src, int src_pix_fmt,