~ubuntu-branches/ubuntu/vivid/ffmpeg/vivid-security

« back to all changes in this revision

Viewing changes to libavformat/rawdec.c

  • Committer: Package Import Robot
  • Author(s): Andreas Cadhalpun
  • Date: 2015-07-31 15:50:07 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20150731155007-5bvmztbbcs6c5vtw
Tags: 7:2.5.8-0ubuntu0.15.04.1
Import new upstream bugfix release 2.5.8. (LP: #1480311)

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
    }
189
189
 
190
190
    if (nb_invalid*4 + 1 < nb_frames) {
191
 
        static const char ct_jpeg[] = "\r\nContent-Type: image/jpeg\r\n\r\n";
 
191
        static const char ct_jpeg[] = "\r\nContent-Type: image/jpeg\r\n";
192
192
        int i;
193
193
 
194
 
        for (i=0; i<FFMIN(p->buf_size - sizeof(ct_jpeg), 100); i++)
 
194
        for (i=0; i<FFMIN(p->buf_size - (int)sizeof(ct_jpeg), 100); i++)
195
195
            if (!memcmp(p->buf + i, ct_jpeg, sizeof(ct_jpeg) - 1))
196
196
                return AVPROBE_SCORE_EXTENSION;
197
197