Change AVSubtitle.rects to an array of pointers so ABI does not break
when the size of AVSubtitleRect changes. Originally committed as revision 16412 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
5
ffmpeg.c
5
ffmpeg.c
@ -1401,8 +1401,9 @@ static int output_packet(AVInputStream *ist, int ist_index,
|
||||
if (subtitle_to_free) {
|
||||
if (subtitle_to_free->rects != NULL) {
|
||||
for (i = 0; i < subtitle_to_free->num_rects; i++) {
|
||||
av_free(subtitle_to_free->rects[i].bitmap);
|
||||
av_free(subtitle_to_free->rects[i].rgba_palette);
|
||||
av_freep(&subtitle_to_free->rects[i]->bitmap);
|
||||
av_freep(&subtitle_to_free->rects[i]->rgba_palette);
|
||||
av_freep(&subtitle_to_free->rects[i]);
|
||||
}
|
||||
av_freep(&subtitle_to_free->rects);
|
||||
}
|
||||
|
Reference in New Issue
Block a user