[theora-dev] Application crushes

Данил danilkrestyaninov at yandex.ru
Mon May 5 04:11:02 PDT 2014


Hi all.
Can any one please help me with my problem. I wrote an application for 
Android, using Teorarm.
It crushes when I try to play the video file. Native application, 
compiled with the help of Android NDK 9r in Android Studio.
Program stack:
#0  theorapackB_readARM () at jni/theorarm/src/dec/bitwise2ARM.s:150
#1  0x673fae80 in oc_dec_headerin (_opb=0x6dca5278, _info=0x6dca52b0, 
_tc=0x6728ebd8, _setup=0x6728eedc, _op=0x6728ebb8) at 
jni/theorarm/src/dec/decinfo.c:171
#2  0x673fb160 in th_decode_headerin (_info=0x6dca52b0, _tc=0x6728ebd8, 
_setup=0x6728eedc, _op=0x6728ebb8) at jni/theorarm/src/dec/decinfo.c:240
#3  0x673fa43c in theora_decode_header (_ci=0x6728ebe8, _cc=0x6728ebd8, 
_op=0x6728ebb8) at jni/theorarm/src/dec/decapiwrapper.c:150

Android.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE    := theorARM
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include \
     $(LOCAL_PATH)/src \
     $(LOCAL_PATH)/src/dec
LOCAL_SRC_FILES := src/dec/apiwrapper.c \
     src/dec/internal.c \
     src/dec/info.c \
     src/dec/decapiwrapper.c \
     src/dec/decinfo.c \
     src/dec/decode.c \
     src/dec/state.c \
     src/dec/dequant.c \
     src/dec/huffdec.c \
     src/dec/quant.c \
     src/dec/bitwise2ARM.s \
     src/dec/bitwiseARM.s \
     src/dec/decodeARM.s \
     src/dec/stateARM.s \
     src/dec/fragARM.s \
     src/dec/idctARM.s\
     src/dec/ppARM.s
LOCAL_ARM_NEON := true
LOCAL_EXPORT_C_INCLUDES += $(LOCAL_C_INCLUDES)

include $(BUILD_SHARED_LIBRARY)

Why TeorARM crushed?

I build Theora (NOT TheprARM!!!) for Android. It works. Slowly, but it 
work. TheorARM is copy of Theora but for ARM-processors. What am I doing 
wrong?

Is anybody have good working project (simple player) with Theora or 
TheorARM for Android?


More information about the theora-dev mailing list