[FFmpeg-devel] [PATCH] libavformat/aviobuf.c: don't treat 0 from read_packet as EOF

Michael Niedermayer michael at niedermayer.cc
Sat Jun 3 20:57:08 EEST 2017


On Sat, Jun 03, 2017 at 10:16:59AM +0200, Daniel Kucera wrote:
> Signed-off-by: Daniel Kucera <daniel.kucera at gmail.com>
> ---
>  libavformat/avio.c    |  2 +-
>  libavformat/aviobuf.c | 18 ++++++++++--------
>  libavformat/cache.c   |  2 +-
>  libavformat/file.c    |  2 ++
>  libavformat/subfile.c |  2 +-
>  libavformat/wtvdec.c  |  4 ++--
>  6 files changed, 17 insertions(+), 13 deletions(-)

breaks rtp

example:

cvlc --play-and-exit ~/videos/matrixbench_mpeg2.mpg --sout="#rtp{dst=127.0.0.1,port=4444,sdp=rtsp://127.0.0.1:9080/test.sdp, mux=ts}" & ./ffmpeg -i rtp://127.0.0.1:4444 -t 1 -y out.avi


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170603/af8b40a6/attachment.sig>


More information about the ffmpeg-devel mailing list