~ppsspp/ppsspp/ffmpeg

« back to all changes in this revision

Viewing changes to libavformat/nistspheredec.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:
36
36
{
37
37
    char buffer[32], coding[32] = "pcm", format[32] = "01";
38
38
    int bps = 0, be = 0;
39
 
    int32_t header_size;
 
39
    int32_t header_size = -1;
40
40
    AVStream *st;
41
41
 
42
42
    st = avformat_new_stream(s, NULL);
108
108
            sscanf(buffer, "%*s %*s %"SCNd32, &st->codec->bits_per_coded_sample);
109
109
        } else {
110
110
            char key[32], value[32];
111
 
            sscanf(buffer, "%31s %*s %31s", key, value);
112
 
            av_dict_set(&s->metadata, key, value, AV_DICT_APPEND);
 
111
            if (sscanf(buffer, "%31s %*s %31s", key, value) == 3) {
 
112
                av_dict_set(&s->metadata, key, value, AV_DICT_APPEND);
 
113
            } else {
 
114
                av_log(s, AV_LOG_ERROR, "Failed to parse '%s' as metadata\n", buffer);
 
115
            }
113
116
        }
114
117
    }
115
118