Revision db4fac64 ffmpeg.c

View differences:

ffmpeg.c
1401 1401
        if (subtitle_to_free) {
1402 1402
            if (subtitle_to_free->rects != NULL) {
1403 1403
                for (i = 0; i < subtitle_to_free->num_rects; i++) {
1404
                    av_free(subtitle_to_free->rects[i].bitmap);
1405
                    av_free(subtitle_to_free->rects[i].rgba_palette);
1404
                    av_freep(&subtitle_to_free->rects[i]->bitmap);
1405
                    av_freep(&subtitle_to_free->rects[i]->rgba_palette);
1406
                    av_freep(&subtitle_to_free->rects[i]);
1406 1407
                }
1407 1408
                av_freep(&subtitle_to_free->rects);
1408 1409
            }

Also available in: Unified diff