mirror of https://git.ffmpeg.org/ffmpeg.git
rtmpproto: Clarify a comment
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
1973079417
commit
857e6667f9
|
@ -2968,7 +2968,6 @@ static int rtmp_write(URLContext *s, const uint8_t *buf, int size)
|
||||||
if (pkttype == RTMP_PT_VIDEO)
|
if (pkttype == RTMP_PT_VIDEO)
|
||||||
channel = RTMP_VIDEO_CHANNEL;
|
channel = RTMP_VIDEO_CHANNEL;
|
||||||
|
|
||||||
//force 12bytes header
|
|
||||||
if (((pkttype == RTMP_PT_VIDEO || pkttype == RTMP_PT_AUDIO) && ts == 0) ||
|
if (((pkttype == RTMP_PT_VIDEO || pkttype == RTMP_PT_AUDIO) && ts == 0) ||
|
||||||
pkttype == RTMP_PT_NOTIFY) {
|
pkttype == RTMP_PT_NOTIFY) {
|
||||||
if (pkttype == RTMP_PT_NOTIFY)
|
if (pkttype == RTMP_PT_NOTIFY)
|
||||||
|
@ -2977,6 +2976,9 @@ static int rtmp_write(URLContext *s, const uint8_t *buf, int size)
|
||||||
&rt->nb_prev_pkt[1],
|
&rt->nb_prev_pkt[1],
|
||||||
channel)) < 0)
|
channel)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
// Force sending a full 12 bytes header by cleaing the
|
||||||
|
// channel id, to make it not match a potential earlier
|
||||||
|
// packet in the same channel.
|
||||||
rt->prev_pkt[1][channel].channel_id = 0;
|
rt->prev_pkt[1][channel].channel_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue