comparison xsubdec.c @ 5485:e41873bf253a libavcodec

100l, wrong argument to av_freep
author reimar
date Sun, 05 Aug 2007 12:11:13 +0000
parents ad3e24850727
children 06486d4cfa88
comparison
equal deleted inserted replaced
5484:ad3e24850727 5485:e41873bf253a
64 // allocate sub and set values 64 // allocate sub and set values
65 if (!sub->rects) { 65 if (!sub->rects) {
66 sub->rects = av_mallocz(sizeof(AVSubtitleRect)); 66 sub->rects = av_mallocz(sizeof(AVSubtitleRect));
67 sub->num_rects = 1; 67 sub->num_rects = 1;
68 } 68 }
69 av_freep(sub->rects[0].bitmap); 69 av_freep(&sub->rects[0].bitmap);
70 sub->rects[0].x = x; sub->rects[0].y = y; 70 sub->rects[0].x = x; sub->rects[0].y = y;
71 sub->rects[0].w = w; sub->rects[0].h = h; 71 sub->rects[0].w = w; sub->rects[0].h = h;
72 sub->rects[0].linesize = w; 72 sub->rects[0].linesize = w;
73 sub->rects[0].bitmap = av_malloc(w * h); 73 sub->rects[0].bitmap = av_malloc(w * h);
74 sub->rects[0].nb_colors = 4; 74 sub->rects[0].nb_colors = 4;