[FFmpeg-cvslog] lavu/frame: av_frame_make_writable: set the channels on the new frame.

Hendrik Leppkes git at videolan.org
Wed Mar 13 16:07:16 CET 2013


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Wed Mar 13 13:44:55 2013 +0100| [e4c5e08f60fdb1da7cb608acb946f1ec0182c0f8] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e4c5e08f60fdb1da7cb608acb946f1ec0182c0f8
---

 libavutil/frame.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/frame.c b/libavutil/frame.c
index 3516edb..fe2f40c 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);



More information about the ffmpeg-cvslog mailing list