OSDN Git Service

lavu/frame: copy the channels field.
authorNicolas George <nicolas.george@normalesup.org>
Sat, 9 Mar 2013 16:17:59 +0000 (17:17 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Mar 2013 00:25:02 +0000 (01:25 +0100)
libavutil/frame.c

index 4f218ba..2e2393d 100644 (file)
@@ -194,6 +194,7 @@ int av_frame_ref(AVFrame *dst, AVFrame *src)
     dst->format         = src->format;
     dst->width          = src->width;
     dst->height         = src->height;
+    dst->channels       = src->channels;
     dst->channel_layout = src->channel_layout;
     dst->nb_samples     = src->nb_samples;