diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-11 07:35:00 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-11 07:35:00 +0000 |
commit | e1d7c8831cf6dddddb8e151a673e89016d7b10db (patch) | |
tree | 49852530bc45ea8d3acd66d8850c33c602caf93c /ffplay.c | |
parent | c426562cbfbe24f3b37ba98b80c128dbcc1b7cc8 (diff) | |
download | ffmpeg-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.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -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) |