From 5f72c65d6e33397a64770dca2cedc02d43589236 Mon Sep 17 00:00:00 2001
From: Jun Zhao <jun.z...@intel.com>
Date: Mon, 15 Aug 2016 15:51:09 +0800
Subject: [[PATCH] 2/5] utils : fix yami decoder carsh issue.

when used the external yami h264 decoder lib, can't used
sps from external yami h264 decoder lib.

Signed-off-by: Jun Zhao <jun.z...@intel.com>
---
 libavformat/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 6b7609e..5bb6b0d 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -927,7 +927,7 @@ static int has_decode_delay_been_guessed(AVStream *st)
     if (st->codecpar->codec_id != AV_CODEC_ID_H264) return 1;
     if (!st->info) // if we have left find_stream_info then nb_decoded_frames 
won't increase anymore for stream copy
         return 1;
-#if CONFIG_H264_DECODER
+#if CONFIG_H264_DECODER && !CONFIG_LIBYAMI_H264_DECODER
     if (st->internal->avctx->has_b_frames &&
        avpriv_h264_has_num_reorder_frames(st->internal->avctx) == 
st->internal->avctx->has_b_frames)
         return 1;
-- 
2.7.4

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to