[FFmpeg-devel] [PATCH 2/3] lavf/movenc: fix writing of some iTunes metadata tag

Michael Niedermayer michaelni at gmx.at
Tue Jul 2 19:01:27 CEST 2013


On Sun, Jun 30, 2013 at 04:15:45PM +0200, Matthieu Bouron wrote:
> Fix metadata display under iTunes for files using pgap, hdvd, stick,
> tvsn and tves tags.
> ---
>  libavformat/movenc.c | 13 +++++++++++--
>  1 file changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/movenc.c b/libavformat/movenc.c
> index 8cf7fdc..5577530 100644
> --- a/libavformat/movenc.c
> +++ b/libavformat/movenc.c
> @@ -2046,16 +2046,25 @@ static int mov_write_int8_metadata(AVFormatContext *s, AVIOContext *pb,
>  {
>      AVDictionaryEntry *t = NULL;
>      uint8_t num;
> +    int size = 25 + 3 * (len == 4);

24 + len

or you could maybe use update_size()

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- 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/20130702/55f0bfc9/attachment.asc>


More information about the ffmpeg-devel mailing list