History

avformat/mov_chan: rename mov_get_channel_label() to better reflect its purpose

This function turns a mov channel label into a lavf native bitmask.

James Almer committed 4 years ago

Commit 90ef7121 parent 854615a1 file · +2 −2Browse files

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

Unified · Split

libavformat/mov_chan.c+2−2
@@ -485,7 +485,7 @@ static uint64_t mov_get_channel_layout(uint32_t tag, uint32_t bitmap) · 484 unmodified lines
485485 return layout_map[i].layout;
486486 }
487487
488−static uint32_t mov_get_channel_label(uint32_t label)
488+static uint32_t mov_get_channel_mask(uint32_t label)
489489 {
490490 if (label == 0)
491491 return 0;
@@ -590,7 +590,7 @@ int ff_mov_read_chan(AVFormatContext *s, AVIOContext *pb, AVStream *st, · 98 unmodified lines
590590 avio_rl32(pb); // mCoordinates[2]
591591 size -= 20;
592592 if (layout_tag == 0) {
593− uint32_t mask_incr = mov_get_channel_label(label);
593+ uint32_t mask_incr = mov_get_channel_mask(label);
594594 if (mask_incr == 0) {
595595 label_mask = 0;
596596 break;

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