diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-03-13 13:44:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-13 16:00:43 +0100 |
commit | e4c5e08f60fdb1da7cb608acb946f1ec0182c0f8 (patch) | |
tree | bf8a0971357873e6dae19908ca7fa4e105c49034 /libavutil/frame.c | |
parent | 2035cc35953c15ddaf8da43cfdd8119bb08b966f (diff) | |
download | ffmpeg-e4c5e08f60fdb1da7cb608acb946f1ec0182c0f8.tar.gz |
lavu/frame: av_frame_make_writable: set the channels on the new frame.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r-- | libavutil/frame.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index 3516edb361..fe2f40c917 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -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); |