avcodec/h264: Move COPY_PICTURE() to h264.h so it can be used from other parts of...
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Feb 2015 01:13:48 +0000 (02:13 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Feb 2015 01:27:27 +0000 (02:27 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.h
libavcodec/h264_refs.c

index bf74f9c..2d363c9 100644 (file)
@@ -892,6 +892,13 @@ void ff_h264_reset_sei(H264Context *h);
  */
 const char* ff_h264_sei_stereo_mode(H264Context *h);
 
+#define COPY_PICTURE(dst, src) \
+do {\
+    *(dst) = *(src);\
+    (dst)->f.extended_data = (dst)->f.data;\
+    (dst)->tf.f = &(dst)->f;\
+} while (0)
+
 /*
  * o-o o-o
  *  / / /
index 8278a07..75025dc 100644 (file)
 
 #include <assert.h>
 
-#define COPY_PICTURE(dst, src) \
-do {\
-    *(dst) = *(src);\
-    (dst)->f.extended_data = (dst)->f.data;\
-    (dst)->tf.f = &(dst)->f;\
-} while (0)
-
 
 static void pic_as_field(H264Picture *pic, const int parity){
     int i;