Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-11-24 17:30:51 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-31 20:43:50 +0300
commit9a8471e3f025d8f1bf20b8950ec7d80ed6ec1eba (patch)
tree7fb9d53c4e21e0ba934d1586fee52bf42c38a6c7 /libavformat/oggparsetheora.c
parente90062107442ea5853e87f60b1df14ebb2b5b92d (diff)
avformat/oggparsetheora: Replace get_bits_long() by get_bits() where possible
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/oggparsetheora.c')
-rw-r--r--libavformat/oggparsetheora.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c
index b0c0edc7a5..87a676fe48 100644
--- a/libavformat/oggparsetheora.c
+++ b/libavformat/oggparsetheora.c
@@ -65,7 +65,7 @@ static int theora_header(AVFormatContext *s, int idx)
/* 0x80"theora" */
skip_bits_long(&gb, 7 * 8);
- thp->version = get_bits_long(&gb, 24);
+ thp->version = get_bits(&gb, 24);
if (thp->version < 0x030100) {
av_log(s, AV_LOG_ERROR,
"Too old or unsupported Theora (%x)\n", thp->version);
@@ -79,8 +79,8 @@ static int theora_header(AVFormatContext *s, int idx)
skip_bits(&gb, 100);
if (thp->version >= 0x030200) {
- int width = get_bits_long(&gb, 24);
- int height = get_bits_long(&gb, 24);
+ int width = get_bits(&gb, 24);
+ int height = get_bits(&gb, 24);
if (width <= st->codecpar->width && width > st->codecpar->width - 16 &&
height <= st->codecpar->height && height > st->codecpar->height - 16) {
st->codecpar->width = width;
@@ -99,8 +99,8 @@ static int theora_header(AVFormatContext *s, int idx)
}
avpriv_set_pts_info(st, 64, timebase.num, timebase.den);
- st->sample_aspect_ratio.num = get_bits_long(&gb, 24);
- st->sample_aspect_ratio.den = get_bits_long(&gb, 24);
+ st->sample_aspect_ratio.num = get_bits(&gb, 24);
+ st->sample_aspect_ratio.den = get_bits(&gb, 24);
if (thp->version >= 0x030200)
skip_bits_long(&gb, 38);