mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
libeplayer3: initalize AVSubtitle
Origin commit data
------------------
Branch: master
Commit: af29c27d3a
Author: martii <m4rtii@gmx.de>
Date: 2014-03-22 (Sat, 22 Mar 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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