OSDN Git Service

Merge branch 'jide_x86_lollipop' into lollipop-x86
[android-x86/external-stagefright-plugins.git] / extractor / FFmpegExtractor.cpp
index 937ccc7..63deb51 100644 (file)
@@ -15,7 +15,6 @@
  * limitations under the License.
  */
 
-//#define LOG_NDEBUG 0
 #define LOG_TAG "FFmpegExtractor"
 #include <utils/Log.h>
 
@@ -61,6 +60,7 @@
 #define DEBUG_DISABLE_VIDEO        0
 #define DEBUG_DISABLE_AUDIO        0
 #define DEBUG_PKT                  0
+#define DEBUG_EXTRADATA            0
 #define DEBUG_FORMATS              0
 
 enum {
@@ -654,14 +654,14 @@ int FFmpegExtractor::stream_component_open(int stream_index)
             }
             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");
@@ -696,14 +696,14 @@ int FFmpegExtractor::stream_component_open(int stream_index)
             }
             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");