@@ -1848,14 +1848,14 @@ static void flush_encoders(void)
// Try to enable encoding with no input frames.
// Maybe we should just let encoding fail instead.
if (!ost->initialized) {
- FilterGraph *fg = ost->filter->graph;
char error[1024] = "";
av_log(NULL, AV_LOG_WARNING,
"Finishing stream %d:%d without any data written to it.\n",
ost->file_index, ost->st->index);
- if (ost->filter && !fg->graph) {
+ if (ost->filter && !ost->filter->graph->graph) {
+ FilterGraph *fg = ost->filter->graph;
int x;
for (x = 0; x < fg->nb_inputs; x++) {
InputFilter *ifilter = fg->inputs[x];
Fixes CID1401675 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- ffmpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)