[FFmpeg-cvslog] rtmp: rtmp_parse_result() add case for video and audio packets to avoid undesired debug output.

Jordi Ortiz git at videolan.org
Mon Jul 16 20:51:11 CEST 2012


ffmpeg | branch: master | Jordi Ortiz <nenjordi at gmail.com> | Tue Jul  3 18:20:02 2012 +0000| [08e087ccf7f7ef9b4e8c55b571bc779c0bc815b0] | committer: Kostya Shishkov

rtmp: rtmp_parse_result() add case for video and audio packets to avoid undesired debug output.

Signed-off-by: Kostya Shishkov <kostya.shishkov at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=08e087ccf7f7ef9b4e8c55b571bc779c0bc815b0
---

 libavformat/rtmpproto.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index b48274b..5342be8 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -959,6 +959,10 @@ static int rtmp_parse_result(URLContext *s, RTMPContext *rt, RTMPPacket *pkt)
                 return ret;
         }
         break;
+    case RTMP_PT_VIDEO:
+    case RTMP_PT_AUDIO:
+        /* Audio and Video packets are parsed in get_packet() */
+        break;
     default:
         av_log(s, AV_LOG_VERBOSE, "Unknown packet type received 0x%02X\n", pkt->type);
         break;



More information about the ffmpeg-cvslog mailing list