]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/get_bits.h
lavfi/avfilter.h: clarify doxy for AVFilterLink.out_buf
[ffmpeg] / libavcodec / get_bits.h
index a1a48ab87d066d769bf17bfe55134e8f424e737e..777176dd30ffef3bd48695d066bd2b554d7b1225 100644 (file)
@@ -320,17 +320,17 @@ static inline unsigned int get_bits_long(GetBitContext *s, int n)
 /**
  * Read 0-64 bits.
  */
-static inline uint64_t get_bits_longlong(GetBitContext *s, int n)
+static inline uint64_t get_bits64(GetBitContext *s, int n)
 {
-    if (n <= 32)
+    if (n <= 32) {
         return get_bits_long(s, n);
-    else {
+    else {
 #ifdef BITSTREAM_READER_LE
         uint64_t ret = get_bits_long(s, 32);
-        return ret | (((uint64_t)get_bits_long(s, n-32)) << 32);
+        return ret | (uint64_t)get_bits_long(s, n - 32) << 32;
 #else
-        uint64_t ret = ((uint64_t)get_bits_long(s, 32)) << (n-32);
-        return ret | get_bits_long(s, n-32);
+        uint64_t ret = (uint64_t)get_bits_long(s, n - 32) << 32;
+        return ret | get_bits_long(s, 32);
 #endif
     }
 }