mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-25 01:41:31 +08:00
ffserver: Use singlejpeg muxer for jpeg
Fixes Ticket4218 Based on patch by: Otávio Ribeiro Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
51ac1f616f
commit
3b89a67315
@@ -967,6 +967,10 @@ static int handle_connection(HTTPContext *c)
|
||||
/* close connection if trailer sent */
|
||||
if (c->state == HTTPSTATE_SEND_DATA_TRAILER)
|
||||
return -1;
|
||||
/* Check if it is a single jpeg frame 123 */
|
||||
if (c->stream->single_frame && c->data_count > c->cur_frame_bytes && c->cur_frame_bytes > 0) {
|
||||
close_connection(c);
|
||||
}
|
||||
break;
|
||||
case HTTPSTATE_RECEIVE_DATA:
|
||||
/* no need to read if no events */
|
||||
|
||||
Reference in New Issue
Block a user