From c27d7c027cd7defd44bf11ba9c0526279a3773c3 Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Thu, 6 Jul 2017 13:59:40 -0400 Subject: [PATCH] rtmpproto: Fix error return Mistake was added in 5840473890440dbe0bd2cce530ebb3d93e187ae6. Signed-off-by: Derek Buitenhuis --- libavformat/rtmpproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index ae55a33284..7dd9cdddaf 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -2507,7 +2507,7 @@ static int get_packet(URLContext *s, int for_header) } else if (rpkt.type == RTMP_PT_METADATA) { ret = handle_metadata(rt, &rpkt); ff_rtmp_packet_destroy(&rpkt); - return 0; + return ret; } ff_rtmp_packet_destroy(&rpkt); }