Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ffmpeg.c to work with newer versions of FFmpeg
Since ffmpeg 2.0, the macro AVCODEC_MAX_AUDIO_FRAME_SIZE is deprecated and removed. This commit simply defines the macro if it's not defined previously, using the same value it used to be in old versions of libavcodec. Actually, as my branch has been using swr_convert, where caller specifies the size of output buffer, even if the current size of 192000 proved to be not enough in the future, we can simply let swr_convert deal with the insufficient size by a small modification. Currently the parameters to swr_convert() still assumes that the size of 192000 samples is always enough for the output buffer. Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
- Loading branch information
1 parent
6b5d525
commit fb939e5
Showing
3 changed files
with
77 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
*.lo | ||
*.so | ||
tags | ||
cscope.out | ||
!.gitignore | ||
|
||
# top-level ignores | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters