mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
Merge commit '733f4b05f0'
* commit '733f4b05f0':
avplay: Check format allocation inside decode_thread()
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
79216a189b
1 changed files with 5 additions and 0 deletions
5
ffplay.c
5
ffplay.c
|
|
@ -2884,6 +2884,11 @@ static int read_thread(void *arg)
|
|||
is->eof = 0;
|
||||
|
||||
ic = avformat_alloc_context();
|
||||
if (!ic) {
|
||||
av_log(NULL, AV_LOG_FATAL, "Could not allocate context.\n");
|
||||
ret = AVERROR(ENOMEM);
|
||||
goto fail;
|
||||
}
|
||||
ic->interrupt_callback.callback = decode_interrupt_cb;
|
||||
ic->interrupt_callback.opaque = is;
|
||||
if (!av_dict_get(format_opts, "scan_all_pmts", NULL, AV_DICT_MATCH_CASE)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue