]> git.sesse.net Git - x264/blobdiff - filters/video/source.c
cli: Use memory-mapped input frames for yuv and y4m
[x264] / filters / video / source.c
index 0cd8f6875bdaaf300dad7213e999dfbf2f3d7df1..fea2a75c16c8018a4d13af0b1f86eb842d56f9b8 100644 (file)
@@ -44,7 +44,7 @@ static int init( hnd_t *handle, cli_vid_filter_t *filter, video_info_t *info, x2
         return -1;
     h->cur_frame = -1;
 
-    if( cli_input.picture_alloc( &h->pic, info->csp, info->width, info->height ) )
+    if( cli_input.picture_alloc( &h->pic, *handle, info->csp, info->width, info->height ) )
         return -1;
 
     h->hin = *handle;
@@ -76,7 +76,7 @@ static int release_frame( hnd_t handle, cli_pic_t *pic, int frame )
 static void free_filter( hnd_t handle )
 {
     source_hnd_t *h = handle;
-    cli_input.picture_clean( &h->pic );
+    cli_input.picture_clean( &h->pic, h->hin );
     cli_input.close_file( h->hin );
     free( h );
 }