avframe: Copy buffer type in copy_props.

Fixes VDPAU decoding with MPlayer.
This commit is contained in:
Carl Eugen Hoyos 2013-03-13 12:47:56 +01:00
parent f45fdb123f
commit f1b716c79b
1 changed files with 3 additions and 0 deletions

View 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;