summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-01-03 17:54:48 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-01-03 17:54:48 +0000
commitdb4fac64db305e14f04d87f639b3fc851266b38c (patch)
tree942e9a98911e53b3d33ea9024e201438fef5556c /ffmpeg.c
parent7cf9c6ae40181f2d769ce73bf141c445f036f30c (diff)
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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index b196f58462..7b31019cab 100644
--- a/ffmpeg.c
+++ b/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);
}