Mercurial > libavformat.hg
changeset 6295:e8dfc68ad182 libavformat
gxfenc: Fix ES name in the UMF media description, by using strlen instead of sizeof
Patch by Thierry Foucu, tfoucu at gmail
author | mstorsjo |
---|---|
date | Wed, 21 Jul 2010 07:46:02 +0000 |
parents | 43d0fb52419d |
children | 7e7f9248ec87 |
files | gxfenc.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gxfenc.c Tue Jul 20 15:14:15 2010 +0000 +++ b/gxfenc.c Wed Jul 21 07:46:02 2010 +0000 @@ -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);