ffserver: drop unneeded else branching
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
parent
d8a04d916b
commit
683f57354d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user