mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
driver/audiodec/ffmpegdec: reopen codec on error (experimental fix)
Origin commit data
------------------
Commit: c11aa70f28
Author: martii <m4rtii@gmx.de>
Date: 2013-10-13 (Sun, 13 Oct 2013)
This commit is contained in:
@@ -224,6 +224,8 @@ CBaseDec::RetCode CFfmpegDec::Decoder(FILE *_in, int /*OutputFd*/, State* state,
|
|||||||
// skip frame
|
// skip frame
|
||||||
packet.size = 0;
|
packet.size = 0;
|
||||||
avcodec_flush_buffers(c);
|
avcodec_flush_buffers(c);
|
||||||
|
avcodec_close(c);
|
||||||
|
avcodec_open2(c, codec, NULL);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (got_frame) {
|
if (got_frame) {
|
||||||
|
Reference in New Issue
Block a user