History

avformat/mov: use AV_WL*A

James Almer committed 2 years ago

Commit 92b31721 parent f1fcc3c1 file · +10 −10Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/mov.c+10−10
@@ -1282,10 +1282,10 @@ static int mov_read_clap(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 1281 unmodified lines
1282 if (!sd)1282 if (!sd)
1283 return AVERROR(ENOMEM);1283 return AVERROR(ENOMEM);
1284 1284
1285 AV_WL32(sd->data, top);1285 AV_WL32A(sd->data, top);
1286 AV_WL32(sd->data + 4, bottom);1286 AV_WL32A(sd->data + 4, bottom);
1287 AV_WL32(sd->data + 8, left);1287 AV_WL32A(sd->data + 8, left);
1288 AV_WL32(sd->data + 12, right);1288 AV_WL32A(sd->data + 12, right);
1289 1289
1290 return 0;1290 return 0;
1291}1291}
@@ -8200,8 +8200,8 @@ static int mov_read_dops(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 6908 unmodified lines
8200 if ((ret = ff_alloc_extradata(st->codecpar, size)) < 0)8200 if ((ret = ff_alloc_extradata(st->codecpar, size)) < 0)
8201 return ret;8201 return ret;
8202 8202
8203 AV_WL32(st->codecpar->extradata, MKTAG('O','p','u','s'));8203 AV_WL32A(st->codecpar->extradata, MKTAG('O','p','u','s'));
8204 AV_WL32(st->codecpar->extradata + 4, MKTAG('H','e','a','d'));8204 AV_WL32A(st->codecpar->extradata + 4, MKTAG('H','e','a','d'));
8205 AV_WB8(st->codecpar->extradata + 8, 1); /* OpusHead version */8205 AV_WB8(st->codecpar->extradata + 8, 1); /* OpusHead version */
8206 avio_read(pb, st->codecpar->extradata + 9, size - 9);8206 avio_read(pb, st->codecpar->extradata + 9, size - 9);
8207 8207
@@ -8209,10 +8209,10 @@ static int mov_read_dops(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 1 unmodified line
8209 little-endian; aside from the preceeding magic and version they're8209 little-endian; aside from the preceeding magic and version they're
8210 otherwise currently identical. Data after output gain at offset 168210 otherwise currently identical. Data after output gain at offset 16
8211 doesn't need to be bytewapped. */8211 doesn't need to be bytewapped. */
8212 pre_skip = AV_RB16(st->codecpar->extradata + 10);8212 pre_skip = AV_RB16A(st->codecpar->extradata + 10);
8213 AV_WL16(st->codecpar->extradata + 10, pre_skip);8213 AV_WL16A(st->codecpar->extradata + 10, pre_skip);
8214 AV_WL32(st->codecpar->extradata + 12, AV_RB32(st->codecpar->extradata + 12));8214 AV_WL32A(st->codecpar->extradata + 12, AV_RB32A(st->codecpar->extradata + 12));
8215 AV_WL16(st->codecpar->extradata + 16, AV_RB16(st->codecpar->extradata + 16));8215 AV_WL16A(st->codecpar->extradata + 16, AV_RB16A(st->codecpar->extradata + 16));
8216 8216
8217 st->codecpar->initial_padding = pre_skip;8217 st->codecpar->initial_padding = pre_skip;
8218 st->codecpar->seek_preroll = av_rescale_q(OPUS_SEEK_PREROLL_MS,8218 st->codecpar->seek_preroll = av_rescale_q(OPUS_SEEK_PREROLL_MS,

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