[FFmpeg-cvslog] avutil/frame: add all remaining frame properties to av_frame_copy_props
Hendrik Leppkes
git at videolan.org
Sat Mar 23 12:15:33 CET 2013
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Mar 22 15:13:42 2013 +0100| [1e8b9738fa70e20967ddb542d2f9d5552fc51ec6] | committer: Anton Khirnov
avutil/frame: add all remaining frame properties to av_frame_copy_props
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1e8b9738fa70e20967ddb542d2f9d5552fc51ec6
---
libavutil/frame.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavutil/frame.c b/libavutil/frame.c
index 331e174..c4096e0 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -367,8 +367,10 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
dst->pict_type = src->pict_type;
dst->sample_aspect_ratio = src->sample_aspect_ratio;
dst->pts = src->pts;
+ dst->repeat_pict = src->repeat_pict;
dst->interlaced_frame = src->interlaced_frame;
dst->top_field_first = src->top_field_first;
+ dst->palette_has_changed = src->palette_has_changed;
dst->sample_rate = src->sample_rate;
dst->opaque = src->opaque;
dst->pkt_pts = src->pkt_pts;
@@ -378,6 +380,8 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
dst->coded_picture_number = src->coded_picture_number;
dst->display_picture_number = src->display_picture_number;
+ memcpy(dst->error, src->error, sizeof(dst->error));
+
for (i = 0; i < src->nb_side_data; i++) {
const AVFrameSideData *sd_src = src->side_data[i];
AVFrameSideData *sd_dst = av_frame_new_side_data(dst, sd_src->type,
More information about the ffmpeg-cvslog
mailing list