mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 13:21:08 +00:00
100l, change avsubtitle_free to the actually tested and working version.
Originally committed as revision 24188 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
849ff0c4d1
commit
8b834ac5d9
@ -695,16 +695,16 @@ void avsubtitle_free(AVSubtitle *sub)
|
||||
|
||||
for (i = 0; i < sub->num_rects; i++)
|
||||
{
|
||||
av_freep(sub->rects[i]->pict.data[0]);
|
||||
av_freep(sub->rects[i]->pict.data[1]);
|
||||
av_freep(sub->rects[i]->pict.data[2]);
|
||||
av_freep(sub->rects[i]->pict.data[3]);
|
||||
av_freep(sub->rects[i]->text);
|
||||
av_freep(sub->rects[i]->ass);
|
||||
av_freep(sub->rects[i]);
|
||||
av_freep(&sub->rects[i]->pict.data[0]);
|
||||
av_freep(&sub->rects[i]->pict.data[1]);
|
||||
av_freep(&sub->rects[i]->pict.data[2]);
|
||||
av_freep(&sub->rects[i]->pict.data[3]);
|
||||
av_freep(&sub->rects[i]->text);
|
||||
av_freep(&sub->rects[i]->ass);
|
||||
av_freep(&sub->rects[i]);
|
||||
}
|
||||
|
||||
av_freep(sub->rects);
|
||||
av_freep(&sub->rects);
|
||||
|
||||
memset(sub, 0, sizeof(AVSubtitle));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user