ffserver: drop unneeded else branching

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-06-21 18:28:22 -03:00
parent d8a04d916b
commit 683f57354d

View File

@ -2119,12 +2119,11 @@ static int64_t get_packet_send_clock(HTTPContext *c)
frame_bytes = c->cur_frame_bytes; frame_bytes = c->cur_frame_bytes;
if (frame_bytes <= 0) if (frame_bytes <= 0)
return c->cur_pts; return c->cur_pts;
else {
bytes_left = c->buffer_end - c->buffer_ptr; bytes_left = c->buffer_end - c->buffer_ptr;
bytes_sent = frame_bytes - bytes_left; bytes_sent = frame_bytes - bytes_left;
return c->cur_pts + (c->cur_frame_duration * bytes_sent) / frame_bytes; return c->cur_pts + (c->cur_frame_duration * bytes_sent) / frame_bytes;
} }
}
static int http_prepare_data(HTTPContext *c) static int http_prepare_data(HTTPContext *c)