mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-21 21:01:43 +00:00
avfilter/vf_shuffleframes: Assert that the case of an uninitialized ret does not occur
Fixes CID1258479 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
cde75e3150
commit
736e2e2c30
@ -18,6 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/avstring.h"
|
#include "libavutil/avstring.h"
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "libavutil/internal.h"
|
#include "libavutil/internal.h"
|
||||||
@ -90,9 +91,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
s->pts[s->in_frames] = frame->pts;
|
s->pts[s->in_frames] = frame->pts;
|
||||||
s->in_frames++;
|
s->in_frames++;
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
} else if (s->in_frames == s->nb_frames) {
|
||||||
|
|
||||||
if (s->in_frames == s->nb_frames) {
|
|
||||||
int n, x;
|
int n, x;
|
||||||
|
|
||||||
for (n = 0; n < s->nb_frames; n++) {
|
for (n = 0; n < s->nb_frames; n++) {
|
||||||
@ -109,7 +108,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
|
|
||||||
for (n = 0; n < s->nb_frames; n++)
|
for (n = 0; n < s->nb_frames; n++)
|
||||||
av_frame_free(&s->frames[n]);
|
av_frame_free(&s->frames[n]);
|
||||||
}
|
} else
|
||||||
|
av_assert0(0);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user