Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: source/patched-ffmpeg-mt/libavcodec/audioconvert.c

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/audioconvert.h ('k') | source/patched-ffmpeg-mt/libavcodec/avcodec.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/patched-ffmpeg-mt/libavcodec/audioconvert.c
===================================================================
--- source/patched-ffmpeg-mt/libavcodec/audioconvert.c (revision 59334)
+++ source/patched-ffmpeg-mt/libavcodec/audioconvert.c (working copy)
@@ -121,6 +121,18 @@
{ 0 }
};
+int64_t avcodec_get_channel_layout(const char *name)
+{
+ int i = 0;
+ do {
+ if (!strcmp(channel_layout_map[i].name, name))
+ return channel_layout_map[i].layout;
+ i++;
+ } while (channel_layout_map[i].name);
+
+ return 0;
+}
+
void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels, int64_t channel_layout)
{
int i;
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/audioconvert.h ('k') | source/patched-ffmpeg-mt/libavcodec/avcodec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698