Commit e4c5e08f authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

lavu/frame: av_frame_make_writable: set the channels on the new frame.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2035cc35
......@@ -353,6 +353,7 @@ int av_frame_make_writable(AVFrame *frame)
tmp.format = frame->format;
tmp.width = frame->width;
tmp.height = frame->height;
tmp.channels = frame->channels;
tmp.channel_layout = frame->channel_layout;
tmp.nb_samples = frame->nb_samples;
ret = av_frame_get_buffer(&tmp, 32);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment