mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
driver/audiodec/ffmpegdec: reopen codec on error (experimental fix)
This commit is contained in:
@@ -224,6 +224,8 @@ CBaseDec::RetCode CFfmpegDec::Decoder(FILE *_in, int /*OutputFd*/, State* state,
|
||||
// skip frame
|
||||
packet.size = 0;
|
||||
avcodec_flush_buffers(c);
|
||||
avcodec_close(c);
|
||||
avcodec_open2(c, codec, NULL);
|
||||
continue;
|
||||
}
|
||||
if (got_frame) {
|
||||
|
Reference in New Issue
Block a user