avframe: Copy buffer type in copy_props.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 13 Mar 2013 11:47:56 +0000 (12:47 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 13 Mar 2013 12:05:42 +0000 (13:05 +0100)
Fixes VDPAU decoding with MPlayer.

libavutil/frame.c

index 4ec7bee..bd3df40 100644 (file)
@@ -395,6 +395,9 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
     dst->top_field_first     = src->top_field_first;
     dst->sample_rate         = src->sample_rate;
     dst->opaque              = src->opaque;
+#if FF_API_AVFRAME_LAVC
+    dst->type                = src->type;
+#endif
     dst->pkt_pts             = src->pkt_pts;
     dst->pkt_dts             = src->pkt_dts;
     dst->pkt_pos             = src->pkt_pos;