~ppsspp/ppsspp/ffmpeg

« back to all changes in this revision

Viewing changes to libavformat/sierravmd.c

  • Committer: Henrik Rydgård
  • Date: 2014-01-03 10:44:32 UTC
  • Revision ID: git-v1:87c6c126784b1718bfa448ecf2e6a9fef781eb4e
Update our ffmpeg snapshot to a clone of the official repository.

This is because Maxim's at3plus support has been officially merged!

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
            int type;
205
205
            uint32_t size;
206
206
 
207
 
            avio_read(pb, chunk, BYTES_PER_FRAME_RECORD);
 
207
            if ((ret = avio_read(pb, chunk, BYTES_PER_FRAME_RECORD)) != BYTES_PER_FRAME_RECORD) {
 
208
                av_log(s, AV_LOG_ERROR, "Failed to read frame record\n");
 
209
                if (ret >= 0)
 
210
                    ret = AVERROR_INVALIDDATA;
 
211
                goto error;
 
212
            }
208
213
            type = chunk[0];
209
214
            size = AV_RL32(&chunk[2]);
210
215
            if (size > INT_MAX / 2) {