Skip to content

Commit

Permalink
VapourSynth/libavsmash_source.c, lwlibav_source.c: fix incorrect _Col…
Browse files Browse the repository at this point in the history
…orRange property for _Alpha clips

Updates #11.
Fixes #16.

Signed-off-by: akarin <i@akarin.info>
  • Loading branch information
AkarinVS committed Oct 2, 2021
1 parent c2d644a commit 37bf8c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VapourSynth/libavsmash_source.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static const VSFrameRef *VS_CC vs_filter_get_frame( int n, int activation_reason
return NULL;
}
VSMap *props = vsapi->getFramePropsRW( vs_frame2 );
vsapi->propSetFrame( props, "_ColorRange", 0, paReplace ); // alpha clip always full range
vsapi->propSetInt( props, "_ColorRange", 0, paReplace ); // alpha clip always full range
props = vsapi->getFramePropsRW( vs_frame );
vsapi->propSetFrame( props, "_Alpha", vs_frame2, paAppend );
vsapi->freeFrame( vs_frame2 );
Expand Down
2 changes: 1 addition & 1 deletion VapourSynth/lwlibav_source.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static const VSFrameRef *VS_CC vs_filter_get_frame( int n, int activation_reason
return NULL;
}
VSMap *props = vsapi->getFramePropsRW( vs_frame2 );
vsapi->propSetFrame( props, "_ColorRange", 0, paReplace ); // alpha clip always full range
vsapi->propSetInt( props, "_ColorRange", 0, paReplace ); // alpha clip always full range
props = vsapi->getFramePropsRW( vs_frame );
vsapi->propSetFrame( props, "_Alpha", vs_frame2, paAppend );
vsapi->freeFrame( vs_frame2 );
Expand Down

0 comments on commit 37bf8c3

Please sign in to comment.