Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
c1ac602d
Commit
c1ac602d
authored
Apr 07, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtpdec_amr: set channel layout
parent
ce842029
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
rtpdec_amr.c
libavformat/rtpdec_amr.c
+2
-0
No files found.
libavformat/rtpdec_amr.c
View file @
c1ac602d
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
#include "libavutil/channel_layout.h"
#include "avformat.h"
#include "avformat.h"
#include "rtpdec_formats.h"
#include "rtpdec_formats.h"
#include "libavutil/avstring.h"
#include "libavutil/avstring.h"
...
@@ -77,6 +78,7 @@ static int amr_handle_packet(AVFormatContext *ctx,
...
@@ -77,6 +78,7 @@ static int amr_handle_packet(AVFormatContext *ctx,
av_log
(
ctx
,
AV_LOG_ERROR
,
"Only mono AMR is supported
\n
"
);
av_log
(
ctx
,
AV_LOG_ERROR
,
"Only mono AMR is supported
\n
"
);
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
}
}
st
->
codec
->
channel_layout
=
AV_CH_LAYOUT_MONO
;
/* The AMR RTP packet consists of one header byte, followed
/* The AMR RTP packet consists of one header byte, followed
* by one TOC byte for each AMR frame in the packet, followed
* by one TOC byte for each AMR frame in the packet, followed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment