mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
driver/audiodec/ffmpegdec: reopen codec on error (experimental fix)
Origin commit data
------------------
Branch: ni/coolstream
Commit: c11aa70f28
Author: martii <m4rtii@gmx.de>
Date: 2013-10-13 (Sun, 13 Oct 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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