Commit cae02106 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit 'abe9adfb'

* commit 'abe9adfb':
  rangecoder: Use AV_RB16 instead of bytestream_get_be16
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents c9b35246 abe9adfb
......@@ -35,9 +35,10 @@
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "rangecoder.h"
#include "bytestream.h"
av_cold void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size)
{
......@@ -56,7 +57,8 @@ av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf,
/* cast to avoid compiler warning */
ff_init_range_encoder(c, (uint8_t *)buf, buf_size);
c->low = bytestream_get_be16((const uint8_t **)&c->bytestream);
c->low = AV_RB16(c->bytestream);
c->bytestream += 2;
}
void ff_build_rac_states(RangeCoder *c, int factor, int max_p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment