Revision 764ef400 libavformat/ffm.c

View differences:

libavformat/ffm.c
54 54
/* disable pts hack for testing */
55 55
int ffm_nopts = 0;
56 56

  
57
#ifdef CONFIG_ENCODERS
57 58
static void flush_packet(AVFormatContext *s)
58 59
{
59 60
    FFMContext *ffm = s->priv_data;
......
273 274
        av_freep(&s->streams[i]->priv_data);
274 275
    return 0;
275 276
}
277
#endif //CONFIG_ENCODERS
276 278

  
277 279
/* ffm demux */
278 280

  
......
663 665
    ffm_seek,
664 666
};
665 667

  
668
#ifdef CONFIG_ENCODERS
666 669
static AVOutputFormat ffm_oformat = {
667 670
    "ffm",
668 671
    "ffm format",
......
676 679
    ffm_write_packet,
677 680
    ffm_write_trailer,
678 681
};
682
#endif //CONFIG_ENCODERS
679 683

  
680 684
int ffm_init(void)
681 685
{
682 686
    av_register_input_format(&ffm_iformat);
687
#ifdef CONFIG_ENCODERS
683 688
    av_register_output_format(&ffm_oformat);
689
#endif //CONFIG_ENCODERS
684 690
    return 0;
685 691
}

Also available in: Unified diff