~siretart/libav/trusty

« back to all changes in this revision

Viewing changes to libavformat/rsoenc.c

  • Committer: Reinhard Tartler
  • Date: 2013-10-23 03:04:17 UTC
  • mfrom: (1.3.36 sid)
  • Revision ID: siretart@tauware.de-20131023030417-1o6mpkl1l0raifjt
mergeĀ fromĀ debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        return AVERROR_INVALIDDATA;
50
50
    }
51
51
 
52
 
    if (enc->codec_id == CODEC_ID_ADPCM_IMA_WAV) {
 
52
    if (enc->codec_id == AV_CODEC_ID_ADPCM_IMA_WAV) {
53
53
        av_log(s, AV_LOG_ERROR, "ADPCM in RSO not implemented\n");
54
54
        return AVERROR_PATCHWELCOME;
55
55
    }
95
95
    avio_wb16(pb, coded_file_size);
96
96
    avio_seek(pb, file_size, SEEK_SET);
97
97
 
98
 
    avio_flush(pb);
99
 
 
100
98
    return 0;
101
99
}
102
100
 
103
101
AVOutputFormat ff_rso_muxer = {
104
102
    .name           =   "rso",
105
 
    .long_name      =   NULL_IF_CONFIG_SMALL("Lego Mindstorms RSO format"),
 
103
    .long_name      =   NULL_IF_CONFIG_SMALL("Lego Mindstorms RSO"),
106
104
    .extensions     =   "rso",
107
 
    .audio_codec    =   CODEC_ID_PCM_U8,
108
 
    .video_codec    =   CODEC_ID_NONE,
 
105
    .audio_codec    =   AV_CODEC_ID_PCM_U8,
 
106
    .video_codec    =   AV_CODEC_ID_NONE,
109
107
    .write_header   =   rso_write_header,
110
108
    .write_packet   =   rso_write_packet,
111
109
    .write_trailer  =   rso_write_trailer,