aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-07-11 07:35:00 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-07-11 07:35:00 +0000
commite1d7c8831cf6dddddb8e151a673e89016d7b10db (patch)
tree49852530bc45ea8d3acd66d8850c33c602caf93c /ffplay.c
parentc426562cbfbe24f3b37ba98b80c128dbcc1b7cc8 (diff)
downloadffmpeg-e1d7c8831cf6dddddb8e151a673e89016d7b10db.tar.gz
Add avsubtitle_free function.
Originally committed as revision 24185 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/ffplay.c b/ffplay.c
index c32b10a5a1..4f254dfc8c 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -677,18 +677,7 @@ static void blend_subrect(AVPicture *dst, const AVSubtitleRect *rect, int imgw,
static void free_subpicture(SubPicture *sp)
{
- int i;
-
- for (i = 0; i < sp->sub.num_rects; i++)
- {
- av_freep(&sp->sub.rects[i]->pict.data[0]);
- av_freep(&sp->sub.rects[i]->pict.data[1]);
- av_freep(&sp->sub.rects[i]);
- }
-
- av_free(sp->sub.rects);
-
- memset(&sp->sub, 0, sizeof(AVSubtitle));
+ avsubtitle_free(&sp->sub);
}
static void video_image_display(VideoState *is)