mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
ffplay: fix memleak of non-bitmap subtitles
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
9f120e034f
commit
608989f6bf
2
ffplay.c
2
ffplay.c
@ -2048,6 +2048,8 @@ static int subtitle_thread(void *arg)
|
|||||||
SDL_LockMutex(is->subpq_mutex);
|
SDL_LockMutex(is->subpq_mutex);
|
||||||
is->subpq_size++;
|
is->subpq_size++;
|
||||||
SDL_UnlockMutex(is->subpq_mutex);
|
SDL_UnlockMutex(is->subpq_mutex);
|
||||||
|
} else if (got_subtitle) {
|
||||||
|
avsubtitle_free(&sp->sub);
|
||||||
}
|
}
|
||||||
av_free_packet(pkt);
|
av_free_packet(pkt);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user