~ppsspp/ppsspp/ffmpeg

« back to all changes in this revision

Viewing changes to libavformat/mux.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:
189
189
    const AVCodecTag *avctag;
190
190
    int n;
191
191
    enum AVCodecID id = AV_CODEC_ID_NONE;
192
 
    unsigned int tag  = 0;
 
192
    int64_t tag  = -1;
193
193
 
194
194
    /**
195
195
     * Check that tag + id is in the table
212
212
    }
213
213
    if (id != AV_CODEC_ID_NONE)
214
214
        return 0;
215
 
    if (tag && (st->codec->strict_std_compliance >= FF_COMPLIANCE_NORMAL))
 
215
    if (tag >= 0 && (st->codec->strict_std_compliance >= FF_COMPLIANCE_NORMAL))
216
216
        return 0;
217
217
    return 1;
218
218
}
237
237
 
238
238
    // some sanity checks
239
239
    if (s->nb_streams == 0 && !(of->flags & AVFMT_NOSTREAMS)) {
240
 
        av_log(s, AV_LOG_ERROR, "no streams\n");
 
240
        av_log(s, AV_LOG_ERROR, "No streams to mux were specified\n");
241
241
        ret = AVERROR(EINVAL);
242
242
        goto fail;
243
243
    }
339
339
    /* set muxer identification string */
340
340
    if (s->nb_streams && !(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT)) {
341
341
        av_dict_set(&s->metadata, "encoder", LIBAVFORMAT_IDENT, 0);
 
342
    } else {
 
343
        av_dict_set(&s->metadata, "encoder", NULL, 0);
342
344
    }
343
345
 
344
346
    if (options) {