diff -durN MPlayer-1.0pre7/libmpdemux/demux_rtp_codec.cpp MPlayer-1.0pre7-elphel-1/libmpdemux/demux_rtp_codec.cpp --- MPlayer-1.0pre7/libmpdemux/demux_rtp_codec.cpp 2003-11-06 09:55:52.000000000 +0400 +++ MPlayer-1.0pre7-elphel-1/libmpdemux/demux_rtp_codec.cpp 2005-04-17 16:30:30.000000000 +0500 @@ -47,6 +47,16 @@ = mmioFOURCC('H','2','6','1'); needVideoFrameRate(demuxer, subsession); } else if (strcmp(subsession->codecName(), "JPEG") == 0) { + unsigned char* packetData; unsigned packetDataLen; float pts; + do { + if (!awaitRTPPacket(demuxer, demuxer->video, + packetData, packetDataLen, pts)) { + return; + } + } while ((packetData[0]!=0xff) || (packetData[1]!=0xd8)); //SOI marker +// disp_h, disp_w - just the initial display size + sh_video->disp_h=bih->biHeight= (((int) packetData[0xa3]) << 8) | packetData[0xa4]; + sh_video->disp_w=bih->biWidth= (((int) packetData[0xa5]) << 8) | packetData[0xa6]; bih->biCompression = sh_video->format = mmioFOURCC('M','J','P','G'); needVideoFrameRate(demuxer, subsession); diff -durN MPlayer-1.0pre7/mencoder.c MPlayer-1.0pre7-elphel-1/mencoder.c --- MPlayer-1.0pre7/mencoder.c 2005-04-06 12:58:30.000000000 +0500 +++ MPlayer-1.0pre7-elphel-1/mencoder.c 2005-04-17 16:30:30.000000000 +0500 @@ -1219,6 +1219,8 @@ signal(SIGINT,exit_sighandler); // Interrupt from keyboard signal(SIGQUIT,exit_sighandler); // Quit from keyboard signal(SIGTERM,exit_sighandler); // kill +signal(SIGHUP,exit_sighandler); // Broken terminal line +signal(SIGPIPE,exit_sighandler); // Broken pipe timer_start=GetTimerMS(); } // if (!curfile) // if this was the first file.