[FFmpeg-devel] [PATCHv2 1/2] ffplay: use a separate struct for the rescaled YUVA AVSubtitle rectangles

Marton Balint cus at passwd.hu
Sat Oct 24 16:14:51 CEST 2015


On Sat, 24 Oct 2015, Marton Balint wrote:

> Current code segfaults since the deprecation of AVSubtitleRect.pict because it
> freed/realloced AVSubtitleRect.pict.data by itself.
>
> The new code stores the generated YUVA AVSubtitle rectangles in their own
> struct and keeps the original AVSubtitle structure untouched, because
> overwriting it is considered invalid API usage.
>
> Signed-off-by: Marton Balint <cus at passwd.hu>
> ---
> ffplay.c | 48 ++++++++++++++++++++++++++----------------------
> 1 file changed, 26 insertions(+), 22 deletions(-)
>

Applied.

Regards,
Marton


More information about the ffmpeg-devel mailing list