Skip to content

Commit 170ca6a

Browse files
committed
Modification to encode only exact number of frames, when --frame option is present, encode till end of file otherwise
1 parent 4f5b1c4 commit 170ca6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/xeve_app.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1196,12 +1196,12 @@ int main(int argc, const char **argv)
11961196
}
11971197
/* read original image */
11981198
ret = imgb_read(fp_inp, ilist_t->imgb, param->w, param->h, is_y4m);
1199-
if ((ret < 0) || pic_icnt >= max_frames)
1199+
if ((ret < 0) || (is_max_frames && (pic_icnt >= max_frames)))
12001200
{
12011201
if(ret < 0)
12021202
logv3("reached out the end of input file\n");
12031203

1204-
if (pic_icnt >= max_frames)
1204+
if (is_max_frames && (pic_icnt >= max_frames))
12051205
logv3("number of frames to be coded %d \n", max_frames);
12061206

12071207
state = STATE_BUMPING;

0 commit comments

Comments
 (0)