]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rv34.c
ffmpeg: replace remaining, ffmpeg specific ist->st->codec by ist->dec_ctx
[ffmpeg] / libavcodec / rv34.c
index 4bae2c4112eb8311c947932e82b2a82d179f8935..5f9dad77c769ec8ae7133856fbc8c9ef5999e320 100644 (file)
@@ -34,6 +34,7 @@
 #include "golomb.h"
 #include "internal.h"
 #include "mathops.h"
+#include "qpeldsp.h"
 #include "rectangle.h"
 #include "thread.h"
 
@@ -509,7 +510,7 @@ static void rv34_pred_mv(RV34DecContext *r, int block_type, int subblock_no, int
     }
 }
 
-#define GET_PTS_DIFF(a, b) ((a - b + 8192) & 0x1FFF)
+#define GET_PTS_DIFF(a, b) (((a) - (b) + 8192) & 0x1FFF)
 
 /**
  * Calculate motion vector component that should be added for direct blocks.