summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-09-15 16:23:06 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-09-15 16:23:06 -0700
commiteae61939e1dc3079fac58887ad1af08d1de074c7 (patch)
tree2ca8fcfe106769f7de8dd08259d381b46d9f37bb /media/libstagefright
parentd79091075e470f5c59a5400027fd41f6c9ea848a (diff)
parentacf67ea7f5ae70a093d8b164872ad1bce502f807 (diff)
downloadframeworks_av-eae61939e1dc3079fac58887ad1af08d1de074c7.zip
frameworks_av-eae61939e1dc3079fac58887ad1af08d1de074c7.tar.gz
frameworks_av-eae61939e1dc3079fac58887ad1af08d1de074c7.tar.bz2
Merge "Upgrade to the latest .webm project code." into gingerbread
Diffstat (limited to 'media/libstagefright')
-rw-r--r--media/libstagefright/codecs/on2/dec/VPXDecoder.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/media/libstagefright/codecs/on2/dec/VPXDecoder.cpp b/media/libstagefright/codecs/on2/dec/VPXDecoder.cpp
index fbc97f4..9433178 100644
--- a/media/libstagefright/codecs/on2/dec/VPXDecoder.cpp
+++ b/media/libstagefright/codecs/on2/dec/VPXDecoder.cpp
@@ -29,8 +29,9 @@
#include <media/stagefright/MetaData.h>
#include <media/stagefright/Utils.h>
-#include "vpx_codec/vpx_decoder.h"
-#include "vp8/vp8dx.h"
+#include "vpx/vpx_decoder.h"
+#include "vpx/vpx_codec.h"
+#include "vpx/vp8dx.h"
namespace android {
@@ -82,9 +83,10 @@ status_t VPXDecoder::start(MetaData *) {
}
mCtx = new vpx_codec_ctx_t;
- if (vpx_codec_dec_init(
- (vpx_codec_ctx_t *)mCtx, &vpx_codec_vp8_dx_algo, NULL, 0)) {
- LOGE("on2 decoder failed to initialize.");
+ vpx_codec_err_t vpx_err;
+ if ((vpx_err = vpx_codec_dec_init(
+ (vpx_codec_ctx_t *)mCtx, &vpx_codec_vp8_dx_algo, NULL, 0))) {
+ LOGE("on2 decoder failed to initialize. (%d)", vpx_err);
mSource->stop();