Revision 764ef400 libavformat/rm.c

View differences:

libavformat/rm.c
42 42
    int old_format;
43 43
} RMContext;
44 44

  
45
#ifdef CONFIG_ENCODERS
45 46
static void put_str(ByteIOContext *s, const char *tag)
46 47
{
47 48
    put_be16(s,strlen(tag));
......
435 436
    put_flush_packet(pb);
436 437
    return 0;
437 438
}
439
#endif //CONFIG_ENCODERS
438 440

  
439 441
/***************************************************/
440 442

  
......
834 836
    rm_read_close,
835 837
};
836 838

  
839
#ifdef CONFIG_ENCODERS
837 840
static AVOutputFormat rm_oformat = {
838 841
    "rm",
839 842
    "rm format",
......
846 849
    rm_write_packet,
847 850
    rm_write_trailer,
848 851
};
852
#endif //CONFIG_ENCODERS
849 853

  
850 854
int rm_init(void)
851 855
{
852 856
    av_register_input_format(&rm_iformat);
857
#ifdef CONFIG_ENCODERS
853 858
    av_register_output_format(&rm_oformat);
859
#endif //CONFIG_ENCODERS
854 860
    return 0;
855 861
}

Also available in: Unified diff