av_frame_copy_props: fix unintended self assignment
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 7 Aug 2013 15:27:07 +0000 (17:27 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 7 Aug 2013 15:27:07 +0000 (17:27 +0200)
Fixes CID1061052

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/frame.c

index a06d525..5021d07 100644 (file)
@@ -460,7 +460,7 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
     dst->display_picture_number = src->display_picture_number;
     dst->decode_error_flags  = src->decode_error_flags;
     dst->colorspace          = src->colorspace;
-    dst->color_range         = dst->color_range;
+    dst->color_range         = src->color_range;
 
     av_dict_copy(&dst->metadata, src->metadata, 0);