diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-21 16:43:01 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-22 02:44:37 +0100 |
commit | e63a362857d9807b23e65872598d782fa53bb6af (patch) | |
tree | 7a21287e54bfbd2ec9c45bcb5a22e441e4992f2b /libavformat/tmv.c | |
parent | 6a786b15c34765ec00be3cd808dafbb041fd5881 (diff) | |
download | ffmpeg-e63a362857d9807b23e65872598d782fa53bb6af.tar.gz |
avio: avio_ prefixes for get_* functions
In the name of consistency:
get_byte -> avio_r8
get_<type> -> avio_r<type>
get_buffer -> avio_read
get_partial_buffer will be made private later
get_strz is left out becase I want to change it later to return
something useful.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit b7effd4e8338f6ed5bda630ad7ed0809bf458648)
Diffstat (limited to 'libavformat/tmv.c')
-rw-r--r-- | libavformat/tmv.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavformat/tmv.c b/libavformat/tmv.c index 14450a2c51..3fe9e65dcc 100644 --- a/libavformat/tmv.c +++ b/libavformat/tmv.c @@ -70,7 +70,7 @@ static int tmv_read_header(AVFormatContext *s, AVFormatParameters *ap) AVRational fps; unsigned comp_method, char_cols, char_rows, features; - if (get_le32(pb) != TMV_TAG) + if (avio_rl32(pb) != TMV_TAG) return -1; if (!(vst = av_new_stream(s, 0))) @@ -79,30 +79,30 @@ static int tmv_read_header(AVFormatContext *s, AVFormatParameters *ap) if (!(ast = av_new_stream(s, 0))) return AVERROR(ENOMEM); - ast->codec->sample_rate = get_le16(pb); + ast->codec->sample_rate = avio_rl16(pb); if (!ast->codec->sample_rate) { av_log(s, AV_LOG_ERROR, "invalid sample rate\n"); return -1; } - tmv->audio_chunk_size = get_le16(pb); + tmv->audio_chunk_size = avio_rl16(pb); if (!tmv->audio_chunk_size) { av_log(s, AV_LOG_ERROR, "invalid audio chunk size\n"); return -1; } - comp_method = get_byte(pb); + comp_method = avio_r8(pb); if (comp_method) { av_log(s, AV_LOG_ERROR, "unsupported compression method %d\n", comp_method); return -1; } - char_cols = get_byte(pb); - char_rows = get_byte(pb); + char_cols = avio_r8(pb); + char_rows = avio_r8(pb); tmv->video_chunk_size = char_cols * char_rows * 2; - features = get_byte(pb); + features = avio_r8(pb); if (features & ~(TMV_PADDING | TMV_STEREO)) { av_log(s, AV_LOG_ERROR, "unsupported features 0x%02x\n", features & ~(TMV_PADDING | TMV_STEREO)); |