aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-03-28 11:28:54 -0300
committerJames Almer <jamrial@gmail.com>2022-04-05 09:19:58 -0300
commit90ef712de56147d127fa06fef176b60c873de929 (patch)
tree0c57d786544b906c9d0a1924970146774489c473
parent854615adf2f9bfd2c839d580293255ac9542d4d1 (diff)
downloadffmpeg-90ef712de56147d127fa06fef176b60c873de929.tar.gz
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. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/mov_chan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mov_chan.c b/libavformat/mov_chan.c
index f52239d347..4607540297 100644
--- a/libavformat/mov_chan.c
+++ b/libavformat/mov_chan.c
@@ -485,7 +485,7 @@ static uint64_t mov_get_channel_layout(uint32_t tag, uint32_t bitmap)
return layout_map[i].layout;
}
-static uint32_t mov_get_channel_label(uint32_t label)
+static uint32_t mov_get_channel_mask(uint32_t label)
{
if (label == 0)
return 0;
@@ -590,7 +590,7 @@ int ff_mov_read_chan(AVFormatContext *s, AVIOContext *pb, AVStream *st,
avio_rl32(pb); // mCoordinates[2]
size -= 20;
if (layout_tag == 0) {
- uint32_t mask_incr = mov_get_channel_label(label);
+ uint32_t mask_incr = mov_get_channel_mask(label);
if (mask_incr == 0) {
label_mask = 0;
break;