* limitations under the License.
*/
-//#define LOG_NDEBUG 0
#define LOG_TAG "FFmpegExtractor"
#include <utils/Log.h>
#define DEBUG_DISABLE_VIDEO 0
#define DEBUG_DISABLE_AUDIO 0
#define DEBUG_PKT 0
+#define DEBUG_EXTRADATA 0
#define DEBUG_FORMATS 0
enum {
}
return ret;
}
-
+#if DEBUG_EXTRADATA
if (avctx->extradata) {
ALOGV("video stream extradata:");
hexdump(avctx->extradata, avctx->extradata_size);
} else {
ALOGV("video stream no extradata, but we can ignore it.");
}
-
+#endif
meta = setVideoFormat(mVideoStream);
if (meta == NULL) {
ALOGE("setVideoFormat failed");
}
return ret;
}
-
+#if DEBUG_EXTRADATA
if (avctx->extradata) {
ALOGV("audio stream extradata(%d):", avctx->extradata_size);
hexdump(avctx->extradata, avctx->extradata_size);
} else {
ALOGV("audio stream no extradata, but we can ignore it.");
}
-
+#endif
meta = setAudioFormat(mAudioStream);
if (meta == NULL) {
ALOGE("setAudioFormat failed");