History

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.

Anton Khirnov committed 15 years ago

Commit b7effd41 parent f8bed30107 files · +1823 −1778Browse files

Showing the changes to libavformat/eacdata.c (1 of 107 files). Show all

Unified · Split

libavformat/eacdata.c+2−2
@@ -51,7 +51,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap) · 50 unmodified lines
5151 unsigned int sample_rate, header;
5252 AVStream *st;
5353
54− header = get_be16(pb);
54+ header = avio_rb16(pb);
5555 switch (header) {
5656 case 0x0400: cdata->channels = 1; break;
5757 case 0x0404: cdata->channels = 2; break;
@@ -61,7 +61,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap) · 3 unmodified lines
6161 return -1;
6262 };
6363
64− sample_rate = get_be16(pb);
64+ sample_rate = avio_rb16(pb);
6565 url_fskip(pb, 12);
6666
6767 st = av_new_stream(s, 0);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t