fftools/ffmpeg: do not assume input streams exist

There can be zero input streams, with input provided by lavfi complex
filtergraphs.
pull/388/head
Anton Khirnov 2 years ago
parent fd8bf8d3b5
commit 005f4e1caf
  1. 6
      fftools/ffmpeg.c

@ -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;

Loading…
Cancel
Save