mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 11:30:08 +01:00
fftools/ffmpeg: do not assume input streams exist
There can be zero input streams, with input provided by lavfi complex filtergraphs.
This commit is contained in:
@@ -3401,7 +3401,11 @@ static int check_keyboard_interaction(int64_t cur_time)
|
|||||||
if (key == 'd' || key == 'D'){
|
if (key == 'd' || key == 'D'){
|
||||||
int debug=0;
|
int debug=0;
|
||||||
if(key == 'D') {
|
if(key == 'D') {
|
||||||
debug = ist_iter(NULL)->dec_ctx->debug << 1;
|
InputStream *ist = ist_iter(NULL);
|
||||||
|
|
||||||
|
if (ist)
|
||||||
|
debug = ist->dec_ctx->debug << 1;
|
||||||
|
|
||||||
if(!debug) debug = 1;
|
if(!debug) debug = 1;
|
||||||
while (debug & FF_DEBUG_DCT_COEFF) //unsupported, would just crash
|
while (debug & FF_DEBUG_DCT_COEFF) //unsupported, would just crash
|
||||||
debug += debug;
|
debug += debug;
|
||||||
|
|||||||
Reference in New Issue
Block a user