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)
mr7.5
Richard Fuchs 3 years ago
parent 62dc4eb12a
commit a5f12332d5

@ -82,6 +82,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