Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
mod_decoding: add missing <libavutil/channel_layout.h> include
Browse files Browse the repository at this point in the history
av_get_channel_layout_string() is declared by
libavutil/channel_layout.h.

Fixes the following build error with FFmpeg >= 5.0:

 mod_decoding.c:122:5: error: implicit declaration of function
 'av_get_channel_layout_string' is invalid in C99
  • Loading branch information
mbouron authored and mbouron-gpsw committed Feb 10, 2022
1 parent 1ad8364 commit 073f65b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Fix build with FFmpeg >= 5.0

## [9.11.0] - 2021-12-16
### Added
Expand Down
1 change: 1 addition & 0 deletions src/mod_decoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <libavutil/pixdesc.h>
#include <libavutil/opt.h>
#include <libavutil/channel_layout.h>

#include "mod_decoding.h"
#include "decoders.h"
Expand Down

0 comments on commit 073f65b

Please sign in to comment.