diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-06-21 18:28:22 -0300 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-06-21 19:06:00 -0300 |
commit | 683f57354deb81897a1508b946bac6384088e3a8 (patch) | |
tree | 177d1617bd6b0edef67511741960348452016301 | |
parent | d8a04d916b24b892ed0f86963598876085929a15 (diff) | |
download | ffmpeg-683f57354deb81897a1508b946bac6384088e3a8.tar.gz |
ffserver: drop unneeded else branching
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
-rw-r--r-- | ffserver.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ffserver.c b/ffserver.c index 8687ebaa1f..3efa48b9e0 100644 --- a/ffserver.c +++ b/ffserver.c @@ -2119,11 +2119,10 @@ static int64_t get_packet_send_clock(HTTPContext *c) frame_bytes = c->cur_frame_bytes; if (frame_bytes <= 0) return c->cur_pts; - else { - bytes_left = c->buffer_end - c->buffer_ptr; - bytes_sent = frame_bytes - bytes_left; - return c->cur_pts + (c->cur_frame_duration * bytes_sent) / frame_bytes; - } + + bytes_left = c->buffer_end - c->buffer_ptr; + bytes_sent = frame_bytes - bytes_left; + return c->cur_pts + (c->cur_frame_duration * bytes_sent) / frame_bytes; } |