line 858-885:
代码: 全选
for (i=1;i<argc;i++)
{
if( !strncmp(argv[i], "--seek", 6) )
{
if( !strcmp(argv[i], "--seek") )
{
i_frame_start = atoi(argv[i+1]);
if( !b_tc && !b_qp && !b_seek_safe ) /* delete seek parameters if no timecodes/qpfile and seek-mode=fast */
{
for (int k=i;k<argc-2;k++)
argv[k] = argv[k+2];
argc -= 2;
i--;
}
}
else
{
i_frame_start = atoi(argv[i]+7);
if( !b_tc && !b_qp && !b_seek_safe ) /* delete seek parameters if no timecodes/qpfile and seek-mode=fast */
{
for (int k=i;k<argc-1;k++)
argv[k] = argv[k+1];
argc -= 1;
i--;
}
}
}
}
line 148-155
代码: 全选
static AVS_Value update_clip( avs_hnd_t avs_h, const AVS_VideoInfo *vi, AVS_Value res, AVS_Value release )
{
avs_h.func.avs_release_clip( avs_h.clip );
avs_h.clip = avs_h.func.avs_take_clip( res, avs_h.env );
avs_h.func.avs_release_value( release );
vi = avs_h.func.avs_get_video_info( avs_h.clip );
return res;
}
没记错的话,x264/input/avs.c里面是这样子的
代码: 全选
static AVS_Value update_clip( avs_hnd_t *h, const AVS_VideoInfo **vi, AVS_Value res, AVS_Value release )
{
h->func.avs_release_clip( h->clip );
h->clip = h->func.avs_take_clip( res, h->env );
h->func.avs_release_value( release );
*vi = h->func.avs_get_video_info( h->clip );
return res;
}
![15 {:cat_15}](./images/smilies/Icon_cat_15.gif)