diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-01-03 17:54:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-01-03 17:54:48 +0000 |
commit | db4fac64db305e14f04d87f639b3fc851266b38c (patch) | |
tree | 942e9a98911e53b3d33ea9024e201438fef5556c /ffmpeg.c | |
parent | 7cf9c6ae40181f2d769ce73bf141c445f036f30c (diff) | |
download | ffmpeg-db4fac64db305e14f04d87f639b3fc851266b38c.tar.gz |
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
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } |