[FFmpeg-cvslog] lavu/frame: copy all frame properties in av_frame_copy_props

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


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Wed Mar 13 13:41:21 2013 +0100| [2035cc35953c15ddaf8da43cfdd8119bb08b966f] | committer: Michael Niedermayer

lavu/frame: copy all frame properties in av_frame_copy_props

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

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

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

diff --git a/libavutil/frame.c b/libavutil/frame.c
index bd3df40..3516edb 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -401,10 +401,16 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
     dst->pkt_pts             = src->pkt_pts;
     dst->pkt_dts             = src->pkt_dts;
     dst->pkt_pos             = src->pkt_pos;
+    dst->pkt_size            = src->pkt_size;
+    dst->pkt_duration        = src->pkt_duration;
     dst->reordered_opaque    = src->reordered_opaque;
     dst->quality             = src->quality;
+    dst->best_effort_timestamp = src->best_effort_timestamp;
     dst->coded_picture_number = src->coded_picture_number;
     dst->display_picture_number = src->display_picture_number;
+    dst->decode_error_flags  = src->decode_error_flags;
+
+    av_dict_copy(&dst->metadata, src->metadata, 0);
 
     for (i = 0; i < src->nb_side_data; i++) {
         const AVFrameSideData *sd_src = src->side_data[i];



More information about the ffmpeg-cvslog mailing list