You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/avcodec: Simplify accessing AVSubtitleRect via dedicated pointer
Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -453,12 +453,15 @@ void avsubtitle_free(AVSubtitle *sub)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < sub->num_rects; i++) {
|
for (i = 0; i < sub->num_rects; i++) {
|
||||||
av_freep(&sub->rects[i]->data[0]);
|
AVSubtitleRect *const rect = sub->rects[i];
|
||||||
av_freep(&sub->rects[i]->data[1]);
|
|
||||||
av_freep(&sub->rects[i]->data[2]);
|
av_freep(&rect->data[0]);
|
||||||
av_freep(&sub->rects[i]->data[3]);
|
av_freep(&rect->data[1]);
|
||||||
av_freep(&sub->rects[i]->text);
|
av_freep(&rect->data[2]);
|
||||||
av_freep(&sub->rects[i]->ass);
|
av_freep(&rect->data[3]);
|
||||||
|
av_freep(&rect->text);
|
||||||
|
av_freep(&rect->ass);
|
||||||
|
|
||||||
av_freep(&sub->rects[i]);
|
av_freep(&sub->rects[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user