Commit 68508cde authored by reimar's avatar reimar

10l in code reading codec_name, the first byte is the length and should not

become part of the string.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20102 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3d8e3b66
......@@ -913,7 +913,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment