[FFmpeg-cvslog] avcodec/dnxhddata: replace % by &

Michael Niedermayer git at videolan.org
Sat Jul 16 22:11:29 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Jul 16 16:15:33 2016 +0200| [2b14204339bdc8833e022fd2f9f7ca8e572aec59] | committer: Michael Niedermayer

avcodec/dnxhddata: replace % by &

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/dnxhddata.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dnxhddata.h b/libavcodec/dnxhddata.h
index 2394e04..3806f9b 100644
--- a/libavcodec/dnxhddata.h
+++ b/libavcodec/dnxhddata.h
@@ -68,7 +68,7 @@ static av_always_inline uint64_t ff_dnxhd_check_header_prefix_hr(uint64_t prefix
     uint64_t data_offset = prefix >> 16;
     if ((prefix & 0xFFFF0000FFFFLL) == 0x0300 &&
          data_offset >= 0x0280 && data_offset <= 0x2170 &&
-         data_offset % 4 == 0)
+         (data_offset & 3) == 0)
         return prefix;
     return 0;
 }



More information about the ffmpeg-cvslog mailing list