MT#55283 fix AVFrame linesize after resampling

At least the recording daemon uses the linesize directly, so this needs
to be corrected after returning a frame from the resampler.

Change-Id: Ia940d8acbbee3fb2d6564474ecb93ae27422d8af
(cherry picked from commit 06efa83cb0)
mr10.5.2
Richard Fuchs 3 years ago
parent 9f7011bcb7
commit c41d799655

@ -87,6 +87,7 @@ resample:
swr_frame->nb_samples = ret_samples;
swr_frame->pts = av_rescale(frame->pts, to_format->clockrate, frame->sample_rate);
swr_frame->linesize[0] = av_get_bytes_per_sample(swr_frame->format) * ret_samples;
return swr_frame;
err:

Loading…
Cancel
Save