aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-09-30 18:27:39 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-09-30 18:27:39 +0000
commitf2ad907060c830ff230e1817ed6b57dfbb6ad1a5 (patch)
tree621761afe9d5a111b77c1aa1df9fe4aab184d591 /libavformat
parent5baaf9adafe839c4ae9e7947c4d6c19329e469a7 (diff)
downloadffmpeg-f2ad907060c830ff230e1817ed6b57dfbb6ad1a5.tar.gz
10l in code reading codec_name, the first byte is the length and should not
become part of the string. Originally committed as revision 20102 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 45c927c086..fdf921cb2a 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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;
}