diff options
author | Mans Rullgard <mans@mansr.com> | 2011-11-25 12:51:57 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-11-25 13:19:54 +0000 |
commit | cc276c85d15272df6e44fb3252657a43cbd49555 (patch) | |
tree | baed10d2966866ed98d9887cd437cc43e009329f /libavfilter/defaults.c | |
parent | 00a856e3f95214c54a878b7cbd6e8ae8c5ce3ca9 (diff) | |
download | ffmpeg-cc276c85d15272df6e44fb3252657a43cbd49555.tar.gz |
Make channel layout masks unsigned
It makes more sense for a bit mask to use an unsigned type.
The change should be source and binary compatible on all
supported systems, hence micro version bump.
Fixes a few invalid shifts.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavfilter/defaults.c')
-rw-r--r-- | libavfilter/defaults.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c index b891ab1f22..4c7e878f9e 100644 --- a/libavfilter/defaults.c +++ b/libavfilter/defaults.c @@ -57,7 +57,7 @@ AVFilterBufferRef *avfilter_default_get_video_buffer(AVFilterLink *link, int per AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int perms, enum AVSampleFormat sample_fmt, int size, - int64_t channel_layout, int planar) + uint64_t channel_layout, int planar) { AVFilterBuffer *samples = av_mallocz(sizeof(AVFilterBuffer)); AVFilterBufferRef *ref = NULL; @@ -292,7 +292,7 @@ AVFilterBufferRef *avfilter_null_get_video_buffer(AVFilterLink *link, int perms, AVFilterBufferRef *avfilter_null_get_audio_buffer(AVFilterLink *link, int perms, enum AVSampleFormat sample_fmt, int size, - int64_t channel_layout, int packed) + uint64_t channel_layout, int packed) { return avfilter_get_audio_buffer(link->dst->outputs[0], perms, sample_fmt, size, channel_layout, packed); |