mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
ffmpegdec: fix ogg stream play
Origin commit data
------------------
Commit: cc0b561ed5
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-18 (Sat, 18 Jan 2020)
This commit is contained in:
@@ -152,12 +152,11 @@ bool CFfmpegDec::Init(void *_in, const CFile::FileType /* ft */)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_stream)
|
if (is_stream){
|
||||||
avc->probesize = 128 * 1024;
|
avc->probesize = 128 * 1024;
|
||||||
|
|
||||||
av_opt_set_int(avc, "analyzeduration", 1000000, 0);
|
av_opt_set_int(avc, "analyzeduration", 1000000, 0);
|
||||||
|
}
|
||||||
avioc = avio_alloc_context (buffer, buffer_size, 0, this, read_packet, NULL, seek_packet);
|
avioc = avio_alloc_context (buffer, buffer_size, 0, this, read_packet, NULL, !is_stream ? seek_packet:NULL);
|
||||||
if (!avioc) {
|
if (!avioc) {
|
||||||
av_freep(&buffer);
|
av_freep(&buffer);
|
||||||
avformat_free_context(avc);
|
avformat_free_context(avc);
|
||||||
|
Reference in New Issue
Block a user