diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 3814da8..ec989ec 100644
|
a
|
b
|
typedef struct RTMPContext {
|
| 93 | 93 | int flv_off; ///< number of bytes read from current buffer |
| 94 | 94 | int flv_nb_packets; ///< number of flv packets published |
| 95 | 95 | RTMPPacket out_pkt; ///< rtmp packet, created from flv a/v or metadata (for output) |
| 96 | | uint32_t client_report_size; ///< number of bytes after which client should report to server |
| 97 | | uint32_t bytes_read; ///< number of bytes read from server |
| 98 | | uint32_t last_bytes_read; ///< number of bytes read last reported to server |
| | 96 | uint64_t client_report_size; ///< number of bytes after which client should report to server |
| | 97 | uint64_t bytes_read; ///< number of bytes read from server |
| | 98 | uint64_t last_bytes_read; ///< number of bytes read last reported to server |
| 99 | 99 | int skip_bytes; ///< number of bytes to skip from the input FLV stream in the next write call |
| 100 | 100 | int has_audio; ///< presence of audio data |
| 101 | 101 | int has_video; ///< presence of video data |
| … |
… |
static int handle_client_bw(URLContext *s, RTMPPacket *pkt)
|
| 1526 | 1526 | |
| 1527 | 1527 | rt->client_report_size = AV_RB32(pkt->data); |
| 1528 | 1528 | if (rt->client_report_size <= 0) { |
| 1529 | | av_log(s, AV_LOG_ERROR, "Incorrect client bandwidth %d\n", |
| | 1529 | av_log(s, AV_LOG_ERROR, "Incorrect client bandwidth %"PRId64"\n", |
| 1530 | 1530 | rt->client_report_size); |
| 1531 | 1531 | return AVERROR_INVALIDDATA; |
| 1532 | 1532 | |
| 1533 | 1533 | } |
| 1534 | | av_log(s, AV_LOG_DEBUG, "Client bandwidth = %d\n", rt->client_report_size); |
| | 1534 | av_log(s, AV_LOG_DEBUG, "Client bandwidth = %"PRId64"\n", rt->client_report_size); |
| 1535 | 1535 | rt->client_report_size >>= 1; |
| 1536 | 1536 | |
| 1537 | 1537 | return 0; |