mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +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
|
// 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