Re: [FFmpeg-devel] [PATCH] rtmp: support the AMF_DATE tag

2015-09-01 Thread Michael Niedermayer
On Mon, Aug 31, 2015 at 08:28:42PM -0400, Andrew Stone wrote:
> Instead of returning EINVAL, which can cause a stream to fail to load, this
> allows the tag to be passed through to the flv demuxer, where it's summarily
> ignored.
> ---
>  libavformat/rtmppkt.c | 1 +
>  1 file changed, 1 insertion(+)

applied

thanks

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

Observe your enemies, for they first find out your faults. -- Antisthenes


signature.asc
Description: Digital signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] [PATCH] rtmp: support the AMF_DATE tag

2015-08-31 Thread Andrew Stone
Instead of returning EINVAL, which can cause a stream to fail to load, this
allows the tag to be passed through to the flv demuxer, where it's summarily
ignored.
---
 libavformat/rtmppkt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c
index c474fb3..0d693c2 100644
--- a/libavformat/rtmppkt.c
+++ b/libavformat/rtmppkt.c
@@ -440,6 +440,7 @@ int ff_amf_tag_size(const uint8_t *data, const uint8_t 
*data_end)
 case AMF_DATA_TYPE_STRING:  return 3 + AV_RB16(data);
 case AMF_DATA_TYPE_LONG_STRING: return 5 + AV_RB32(data);
 case AMF_DATA_TYPE_NULL:return 1;
+case AMF_DATA_TYPE_DATE:return 11;
 case AMF_DATA_TYPE_ARRAY:
 parse_key = 0;
 case AMF_DATA_TYPE_MIXEDARRAY:
-- 
2.5.0

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel