rtmpproto: Fix error return

Mistake was added in 5840473890.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
Derek Buitenhuis 2017-07-06 13:59:40 -04:00
parent aa2bc61a3e
commit c27d7c027c

View File

@ -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);
}