mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
lavfi/fifo: do not assume request_frame() returns a frame.
This commit is contained in:
parent
79c1be124e
commit
67d3f5296e
1 changed files with 4 additions and 2 deletions
|
|
@ -201,7 +201,8 @@ static int return_audio_frame(AVFilterContext *ctx)
|
|||
break;
|
||||
} else if (ret < 0)
|
||||
return ret;
|
||||
av_assert0(s->root.next); // If ff_request_frame() succeeded then we should have a frame
|
||||
if (!s->root.next)
|
||||
return 0;
|
||||
}
|
||||
head = s->root.next->frame;
|
||||
|
||||
|
|
@ -237,7 +238,8 @@ static int request_frame(AVFilterLink *outlink)
|
|||
return return_audio_frame(outlink->src);
|
||||
return ret;
|
||||
}
|
||||
av_assert0(fifo->root.next);
|
||||
if (!fifo->root.next)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (outlink->request_samples) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue