aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2017-07-06 13:59:40 -0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2017-07-07 15:30:57 -0400
commitc27d7c027cd7defd44bf11ba9c0526279a3773c3 (patch)
tree6f78304755e6cd7459f0645b7dbd6a172b41743d
parentaa2bc61a3e32579567b432590b8a24bee01dcee1 (diff)
downloadffmpeg-c27d7c027cd7defd44bf11ba9c0526279a3773c3.tar.gz
rtmpproto: Fix error return
Mistake was added in 5840473890440dbe0bd2cce530ebb3d93e187ae6. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r--libavformat/rtmpproto.c2
1 files changed, 1 insertions, 1 deletions
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);
}