1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

avfilter/fifo: explicitly assert that a frame should have become available after request

May help tools like coverity

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-08-09 09:28:11 +02:00
parent 760c5278db
commit 190a5893d1

View File

@ -201,6 +201,7 @@ static int return_audio_frame(AVFilterContext *ctx)
break; break;
} else if (ret < 0) } else if (ret < 0)
return ret; return ret;
av_assert0(s->root.next); // If ff_request_frame() succeeded then we should have a frame
} }
head = s->root.next->frame; head = s->root.next->frame;