Changeset 5b2ad78f in ffmpeg

Timestamp:
Mar 7, 2014, 8:43:26 AM (11 years ago)
Author:
Martin Storsjö <martin@martin.st>
Branches:
master
Children:
48cfb5f4, d540e757
Parents:
93d216d3
git-author:
Martin Panter <vadmium@gmail.com> (03/05/14 04:04:39)
git-committer:
Martin Storsjö <martin@martin.st> (03/07/14 08:43:26)
Message:

rtmppkt: Handle extended timestamp field even for one-byte header

Related fix in "rtmpdump":
https://repo.or.cz/w/rtmpdump.git/commitdiff/79459a2

Adobe's RTMP specification (21 Dec 2012), section 5.3.1.3 ("Extended
Timestamp"), says "this field is present in Type 3 chunks". Type 3 chunks are
those with the one-byte header size.

This resolves intermittent hangs and segfaults caused by the read function,
and also includes an untested fix for the write function.

The read function was tested with ABC (Australia) News 24 streams, however
they are probably restricted to only Australian internet addresses. Some of
the packets at the start of these streams seem to contain junk timestamp
fields, often requiring the extended field. Test command:

avplay rtmp://cp81899.live.edgefcs.net/live/news24-med@28772

Signed-off-by: Martin Storsjö <martin@martin.st>

(No files)

Note: See TracChangeset for help on using the changeset viewer.