[FFmpeg-devel] [PATCH]: fix ES name in the UMF media description
Baptiste Coudurier
baptiste.coudurier
Wed Jul 14 20:01:13 CEST 2010
On 07/14/2010 10:48 AM, Thierry Foucu wrote:
> On Wed, Jul 14, 2010 at 10:47 AM, Thierry Foucu<tfoucu at gmail.com> wrote:
> [...]
>
> Index: libavformat/gxfenc.c
> ===================================================================
> --- libavformat/gxfenc.c (revision 24229)
> +++ libavformat/gxfenc.c (working copy)
> @@ -550,9 +550,9 @@
> put_le32(pb, 0); /* attributes rw, ro */
> put_le32(pb, 0); /* mark in */
> put_le32(pb, gxf->nb_fields); /* mark out */
> - put_buffer(pb, ES_NAME_PATTERN, sizeof(ES_NAME_PATTERN));
> + put_buffer(pb, ES_NAME_PATTERN, strlen(ES_NAME_PATTERN));
> put_be16(pb, sc->media_info);
> - for (j = sizeof(ES_NAME_PATTERN)+2; j< 88; j++)
> + for (j = strlen(ES_NAME_PATTERN)+2; j< 88; j++)
> put_byte(pb, 0);
> put_le32(pb, sc->track_type);
> put_le32(pb, sc->sample_rate);
Patch ok.
--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel
mailing list