mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
- libeplayer3: sync with max_10
This commit is contained in:
@@ -145,13 +145,13 @@ static AVCodecContext *wrapped_avcodec_get_context(uint32_t cAVIdx, AVStream *st
|
||||
avCodecCtx = avcodec_alloc_context3(NULL);
|
||||
if (!avCodecCtx)
|
||||
{
|
||||
fprintf(stderr, "context3 alloc for stream %d failed\n", (int)stream->id);
|
||||
ffmpeg_err("context3 alloc for stream %d failed\n", (int)stream->id);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (avcodec_parameters_to_context(avCodecCtx, stream->codecpar) < 0)
|
||||
{
|
||||
fprintf(stderr, "parameters to context for stream %d failed\n", (int)stream->id);
|
||||
ffmpeg_err("parameters to context for stream %d failed\n", (int)stream->id);
|
||||
avcodec_free_context(&avCodecCtx);
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user