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:
martii
2013-10-13 16:18:31 +02:00
committed by [CST] Focus
parent b5799595f2
commit 992df5f59c

View File

@@ -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) {