changeset 9186:f745791c3030

{malloc,free} -> av_{malloc,free}
author rik
date Fri, 31 Jan 2003 18:03:17 +0000
parents e15cd4f30ee6
children 31ab9f9f634e
files libvo/jpeg_enc.c
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/jpeg_enc.c	Fri Jan 31 03:30:38 2003 +0000
+++ b/libvo/jpeg_enc.c	Fri Jan 31 18:03:17 2003 +0000
@@ -293,12 +293,12 @@
 			w, h, y_psize, y_rsize, u_psize, 
 			u_rsize, v_psize, v_rsize);
 
-	j = malloc(sizeof(jpeg_enc_t));
+	j = av_malloc(sizeof(jpeg_enc_t));
 	if (j == NULL) return NULL;
 
-	j->s = malloc(sizeof(MpegEncContext));
+	j->s = av_malloc(sizeof(MpegEncContext));
 	if (j->s == NULL) {
-		free(j);
+		av_free(j);
 		return NULL;
 	}
 
@@ -343,8 +343,8 @@
 	}
 
 	if (mjpeg_init(j->s) < 0) {
-		free(j->s);
-		free(j);
+		av_free(j->s);
+		av_free(j);
 		return NULL;
 	}
 
@@ -352,8 +352,8 @@
 	j->s->avctx = calloc(sizeof(*j->s->avctx), 1);
 
 	if (MPV_common_init(j->s) < 0) {
-		free(j->s);
-		free(j);
+		av_free(j->s);
+		av_free(j);
 		return NULL;
 	}
 
@@ -496,8 +496,8 @@
 
 void jpeg_enc_uninit(jpeg_enc_t *j) {
 	mjpeg_close(j->s);
-	free(j->s);
-	free(j);
+	av_free(j->s);
+	av_free(j);
 }
 
 #if 0