Revision 764ef400 libavformat/asf.c

View differences:

libavformat/asf.c
182 182
    0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 },
183 183
};
184 184

  
185
#ifdef CONFIG_ENCODERS
185 186
static void put_guid(ByteIOContext *s, const GUID *g)
186 187
{
187 188
    int i;
......
661 662
    put_flush_packet(&s->pb);
662 663
    return 0;
663 664
}
665
#endif //CONFIG_ENCODERS
664 666

  
665 667
/**********************************/
666 668
/* decoding */
......
1245 1247
    asf_read_seek,
1246 1248
};
1247 1249

  
1250
#ifdef CONFIG_ENCODERS
1248 1251
static AVOutputFormat asf_oformat = {
1249 1252
    "asf",
1250 1253
    "asf format",
......
1278 1281
    asf_write_packet,
1279 1282
    asf_write_trailer,
1280 1283
};
1284
#endif //CONFIG_ENCODERS
1281 1285

  
1282 1286
int asf_init(void)
1283 1287
{
1284 1288
    av_register_input_format(&asf_iformat);
1289
#ifdef CONFIG_ENCODERS
1285 1290
    av_register_output_format(&asf_oformat);
1286 1291
    av_register_output_format(&asf_stream_oformat);
1292
#endif //CONFIG_ENCODERS
1287 1293
    return 0;
1288 1294
}

Also available in: Unified diff