Revision 764ef400 libavformat/swf.c

View differences:

libavformat/swf.c
49 49
    int tag;
50 50
} SWFContext;
51 51

  
52
#ifdef CONFIG_ENCODERS
52 53
static void put_swf_tag(AVFormatContext *s, int tag)
53 54
{
54 55
    SWFContext *swf = s->priv_data;
......
418 419
    }
419 420
    return 0;
420 421
}
422
#endif //CONFIG_ENCODERS
421 423

  
422 424
/***********************************/
423 425
/* just to extract MP3 from swf */
......
551 553
    swf_read_close,
552 554
};
553 555

  
556
#ifdef CONFIG_ENCODERS
554 557
static AVOutputFormat swf_oformat = {
555 558
    "swf",
556 559
    "Flash format",
......
563 566
    swf_write_packet,
564 567
    swf_write_trailer,
565 568
};
569
#endif //CONFIG_ENCODERS
566 570

  
567 571
int swf_init(void)
568 572
{
569 573
    av_register_input_format(&swf_iformat);
574
#ifdef CONFIG_ENCODERS
570 575
    av_register_output_format(&swf_oformat);
576
#endif //CONFIG_ENCODERS
571 577
    return 0;
572 578
}

Also available in: Unified diff