mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
libeplayer3: initalize AVSubtitle
This commit is contained in:
@@ -769,6 +769,7 @@ static void container_ffmpeg_read_subtitle(Context_t * context, const char *file
|
|||||||
|
|
||||||
while (av_read_frame(avfc, &avpkt) > -1) {
|
while (av_read_frame(avfc, &avpkt) > -1) {
|
||||||
AVSubtitle sub;
|
AVSubtitle sub;
|
||||||
|
memset(&sub, 0, sizeof(sub));
|
||||||
int got_sub = 0;
|
int got_sub = 0;
|
||||||
avcodec_decode_subtitle2(c, &sub, &got_sub, &avpkt);
|
avcodec_decode_subtitle2(c, &sub, &got_sub, &avpkt);
|
||||||
if (got_sub)
|
if (got_sub)
|
||||||
|
Reference in New Issue
Block a user