Mercurial > libavformat.hg
changeset 5242:c6eeec0f9b40 libavformat
10l in code reading codec_name, the first byte is the length and should not
become part of the string.
author | reimar |
---|---|
date | Wed, 30 Sep 2009 18:27:39 +0000 |
parents | da61aef912cb |
children | 13dd683f3ff2 |
files | mov.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Wed Sep 30 13:35:13 2009 +0000 +++ b/mov.c Wed Sep 30 18:27:39 2009 +0000 @@ -913,7 +913,7 @@ int pos = 0; for (i = 0; i < codec_name[0] && pos < sizeof(st->codec->codec_name) - 3; i++) { uint8_t tmp; - PUT_UTF8(codec_name[i], tmp, st->codec->codec_name[pos++] = tmp;) + PUT_UTF8(codec_name[i+1], tmp, st->codec->codec_name[pos++] = tmp;) } st->codec->codec_name[pos] = 0; }