~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-security

« back to all changes in this revision

Viewing changes to libavformat/isom.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-03-13 09:18:28 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090313091828-n4ktby5eca487uhv
Tags: 3:0.svn20090303-1ubuntu1+unstripped1
merge from ubuntu.jaunty branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
257
257
    }
258
258
    /* XXX:can we do that in mov too? */
259
259
    if (!mp4)
260
 
        return 0;
 
260
        return -1;
261
261
    /* handle undefined as such */
262
262
    if (lang[0] == '\0')
263
263
        lang = "und";
265
265
    for (i = 0; i < 3; i++) {
266
266
        unsigned char c = (unsigned char)lang[i];
267
267
        if (c < 0x60)
268
 
            return 0;
 
268
            return -1;
269
269
        if (c > 0x60 + 0x1f)
270
 
            return 0;
 
270
            return -1;
271
271
        code <<= 5;
272
272
        code |= (c - 0x60);
273
273
    }