mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 01:02:39 +08:00
[mpi_dec_test]: Allow loop jpeg decoding test
Change-Id: I2074554b9106213671c976705a195b0e9f740eb7 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -446,13 +446,15 @@ static int dec_advanced(MpiDecLoopData *data)
|
||||
mpp_log_q(quiet, "%p found eos frame\n", ctx);
|
||||
}
|
||||
}
|
||||
if (data->frame_num > 0 && data->frame_count < data->frame_num) {
|
||||
|
||||
if (data->frame_num > 0 && data->frame_count >= data->frame_num) {
|
||||
data->eos = 1;
|
||||
} else {
|
||||
data->eos = 0;
|
||||
clearerr(data->fp_input);
|
||||
rewind(data->fp_input);
|
||||
} else {
|
||||
data->eos = 1;
|
||||
}
|
||||
|
||||
/* output queue */
|
||||
ret = mpi->enqueue(ctx, MPP_PORT_OUTPUT, task);
|
||||
if (ret)
|
||||
|
Reference in New Issue
Block a user