Commit 608989f6 authored by Marton Balint's avatar Marton Balint

ffplay: fix memleak of non-bitmap subtitles

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 9f120e03
......@@ -2048,6 +2048,8 @@ static int subtitle_thread(void *arg)
SDL_LockMutex(is->subpq_mutex);
is->subpq_size++;
SDL_UnlockMutex(is->subpq_mutex);
} else if (got_subtitle) {
avsubtitle_free(&sp->sub);
}
av_free_packet(pkt);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment