OSDN Git Service

avformat/rtmpproto: only prepend @setMetaData for onMetaData and |RtmpSampleAccess
authorJeffrey Wescott <jeffrey.wescott@gmail.com>
Thu, 6 Nov 2014 01:55:34 +0000 (17:55 -0800)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 23 Nov 2014 23:15:48 +0000 (00:15 +0100)
commit60fd790f381cd404ffdafa8a86a6dc93c9d80f99
tree15a1eb36fa2ec3b7ab794bb85a0fb2c0795075ab
parent4e9745fbff5174c0679452b613b0b73f08ca0280
avformat/rtmpproto: only prepend @setMetaData for onMetaData and |RtmpSampleAccess

In current versions of ffmpeg, when streaming to an RTMP server, anytime a packet of type
RTMP_PT_NOTIFY is encountered, the packet is prepended with @setDataFrame before it gets sent
to the server. This is incorrect; only packets for onMetaData and |RtmpSampleAccess should
invoke @setDataFrame on the RTMP server. Specifically, the current bug manifests
itself when trying to stream onTextData or onCuePoint invocations.

This fix addresses that problem and ensures that the @setDataFrame is only prepended
for onMetaData and |RtmpSampleAccess.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rtmpproto.c