100l, wrong argument to av_freep
Originally committed as revision 9935 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
59f6f64e30
commit
5968b39635
@ -66,7 +66,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
|
|||||||
sub->rects = av_mallocz(sizeof(AVSubtitleRect));
|
sub->rects = av_mallocz(sizeof(AVSubtitleRect));
|
||||||
sub->num_rects = 1;
|
sub->num_rects = 1;
|
||||||
}
|
}
|
||||||
av_freep(sub->rects[0].bitmap);
|
av_freep(&sub->rects[0].bitmap);
|
||||||
sub->rects[0].x = x; sub->rects[0].y = y;
|
sub->rects[0].x = x; sub->rects[0].y = y;
|
||||||
sub->rects[0].w = w; sub->rects[0].h = h;
|
sub->rects[0].w = w; sub->rects[0].h = h;
|
||||||
sub->rects[0].linesize = w;
|
sub->rects[0].linesize = w;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user