This fixes "input timecode file missing data for frame" warning with piped input where we don't know total number of frames.
static int read_frame( cli_pic_t *pic, hnd_t handle, int frame )
{
timecode_hnd_t *h = handle;
static int read_frame( cli_pic_t *pic, hnd_t handle, int frame )
{
timecode_hnd_t *h = handle;
- int ret = h->input.read_frame( pic, h->p_handle, frame );
+ if( h->input.read_frame( pic, h->p_handle, frame ) )
+ return -1;
pic->pts = get_frame_pts( h, frame, 1 );
pic->duration = get_frame_pts( h, frame + 1, 0 ) - pic->pts;
pic->pts = get_frame_pts( h, frame, 1 );
pic->duration = get_frame_pts( h, frame + 1, 0 ) - pic->pts;
}
static int release_frame( cli_pic_t *pic, hnd_t handle )
}
static int release_frame( cli_pic_t *pic, hnd_t handle )