From b73029149580370e62dd6c14a270aea902f85cf2 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期三, 18 九月 2019 09:52:30 +0800
Subject: [PATCH] fix rec bug

---
 csrc/ffmpeg/format/FormatIn.cpp |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/csrc/ffmpeg/format/FormatIn.cpp b/csrc/ffmpeg/format/FormatIn.cpp
index 4df2c0f..3e9dd51 100644
--- a/csrc/ffmpeg/format/FormatIn.cpp
+++ b/csrc/ffmpeg/format/FormatIn.cpp
@@ -106,11 +106,10 @@
         }
 
         ret = avformat_open_input(&ctx_, "", NULL, options);
-        if(ret < 0){
-            logIt("open %s failed:%s",filename,
-                  getAVErrorDesc(ret).c_str());
-
-        }
+        // if(ret < 0){
+            // logIt("open %s failed:%s",filename,
+            //       getAVErrorDesc(ret).c_str());
+        // }
 
 		return ret;
 	}
@@ -119,11 +118,10 @@
 	int FormatIn::open(const char *filename, AVDictionary **options){
 
 		const int ret = avformat_open_input(&ctx_, filename, NULL, options);
-		if(ret < 0){
-			logIt("open %s failed:%s",filename,
-					getAVErrorDesc(ret).c_str()); 
-
-		}
+		// if(ret < 0){
+		// 	logIt("open %s failed:%s",filename,
+		// 			getAVErrorDesc(ret).c_str()); 
+		// }
 
 		return ret;
 	}
@@ -266,8 +264,8 @@
 		while (!founded){
 			const int ret = av_read_frame(ctx_, &pkt_out);
 			if(ret < 0){
-				logIt("read frame from %s failed:%s",
-						ctx_->filename,getAVErrorDesc(ret).c_str()); 
+				// logIt("read frame from %s failed:%s",
+				// 		ctx_->filename,getAVErrorDesc(ret).c_str()); 
 	
 				return false;
 			}

--
Gitblit v1.8.0