Skip to content

Commit

Permalink
VapourSynth/video_output.c: set _FramePktSize as the byte size of enc…
Browse files Browse the repository at this point in the history
…oded frame

Be sure to apply sufficient smoothing before using it for adaptive
algorithms.

Signed-off-by: akarin <i@akarin.info>
  • Loading branch information
AkarinVS committed Nov 22, 2022
1 parent ee60c53 commit c0ce1b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions VapourSynth/video_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,7 @@ void vs_set_frame_properties
{
VSMap *props = vsapi->getFramePropsRW( vs_frame );
vsapi->propSetInt( props, "_FrameNumber", n, paReplace );
vsapi->propSetInt( props, "_FramePktSize", av_frame->pkt_size, paReplace );
/* Sample aspect ratio */
vsapi->propSetInt( props, "_SARNum", av_frame->sample_aspect_ratio.num, paReplace );
vsapi->propSetInt( props, "_SARDen", av_frame->sample_aspect_ratio.den, paReplace );
Expand Down

0 comments on commit c0ce1b8

Please sign in to comment.