mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
Accept RTMP packets with one-byte header
Originally committed as revision 20269 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f836fa1706
commit
8f648b74c3
@ -87,8 +87,7 @@ int ff_rtmp_packet_read(URLContext *h, RTMPPacket *p,
|
|||||||
|
|
||||||
hdr >>= 6;
|
hdr >>= 6;
|
||||||
if (hdr == RTMP_PS_ONEBYTE) {
|
if (hdr == RTMP_PS_ONEBYTE) {
|
||||||
//todo
|
timestamp = prev_pkt[channel_id].timestamp;
|
||||||
return -1;
|
|
||||||
} else {
|
} else {
|
||||||
if (url_read_complete(h, buf, 3) != 3)
|
if (url_read_complete(h, buf, 3) != 3)
|
||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
|
Loading…
Reference in New Issue
Block a user