ffmpeg: free empty subtitles as well in transcode_subtitles
authorMarton Balint <cus@passwd.hu>
Sat, 23 Nov 2013 16:27:22 +0000 (17:27 +0100)
committerMarton Balint <cus@passwd.hu>
Thu, 28 Nov 2013 20:30:03 +0000 (21:30 +0100)
commit4d6f2ff524afc01f2af30677ca271a6387cf8657
tree402913f894299ba3fb183bdf66a8a871f51daffd
parent3e396ca8eda473d619ce5ffc1e01950c978194e8
ffmpeg: free empty subtitles as well in transcode_subtitles

Even if it does not matter at the moment, because subtitles with num_rect == 0
have no memory allocated, this is how we expect the users to use the API, a
returned AVSubtitle should be freed with avsubtitle_free.

Signed-off-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Nicolas George <george@nsup.org>
ffmpeg.c