[FFmpeg-devel] [PATCH] Magic Lantern Video (MLV) demuxer

Michael Niedermayer michaelni at gmx.at
Sun Mar 16 18:44:46 CET 2014


On Sat, Mar 15, 2014 at 05:37:08PM +1100, Peter Ross wrote:
> ---
> Samples: /incoming/mlv
> More info: http://www.magiclantern.fm/
> 
>  Changelog                |   1 +
>  doc/general.texi         |   1 +
>  libavformat/Makefile     |   1 +
>  libavformat/allformats.c |   1 +
>  libavformat/mlvdec.c     | 450 +++++++++++++++++++++++++++++++++++++++++++++++
>  5 files changed, 454 insertions(+)
>  create mode 100644 libavformat/mlvdec.c

testing compile with mingw, iam getting:

ffmpeg/libavformat/mlvdec.c: In function ‘scan_file’:
ffmpeg/libavformat/mlvdec.c:210:17: error: ‘struct tm’ has no member named ‘tm_gmtoff’


[...]
> +static void read_uint8(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
> +{
> +    char value[4];
> +    sprintf(value, "%i", avio_r8(pb));
> +    av_dict_set(&avctx->metadata, tag, value, 0);
> +}
> +
> +static void read_uint16(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
> +{
> +    char value[8];
> +    sprintf(value, "%i", avio_rl16(pb));
> +    av_dict_set(&avctx->metadata, tag, value, 0);
> +}
> +
> +static void read_uint32(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
> +{
> +    char value[16];
> +    sprintf(value, fmt, avio_rl32(pb));
> +    av_dict_set(&avctx->metadata, tag, value, 0);
> +}
> +
> +static void read_uint64(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
> +{
> +    char value[32];
> +    sprintf(value, fmt, avio_rl64(pb));
> +    av_dict_set(&avctx->metadata, tag, value, 0);
> +}

id use snprintf(), just to be double sure


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

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140316/602a7d44/attachment.asc>


More information about the ffmpeg-devel mailing list