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

Jordi Ortiz git at libav.org
Mon Jul 16 13:45:31 CEST 2012


Module: libav
Branch: master
Commit: 08e087ccf7f7ef9b4e8c55b571bc779c0bc815b0

Author:    Jordi Ortiz <nenjordi at gmail.com>
Committer: Kostya Shishkov <kostya.shishkov at gmail.com>
Date:      Tue Jul  3 18:20:02 2012 +0000

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>

---

 libavformat/rtmpproto.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

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 libav-commits mailing list