~ubuntu-branches/ubuntu/intrepid/gstreamer0.10-ffmpeg/intrepid

« back to all changes in this revision

Viewing changes to gst-libs/ext/ffmpeg/libavformat/adtsenc.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-12-13 23:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20061213231028-9vl0epppqnwbq78i
Tags: upstream-0.10.2
Import upstream version 0.10.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
    ADTSContext *adts = s->priv_data;
98
98
    ByteIOContext *pb = &s->pb;
99
99
 
 
100
    if (!pkt->size)
 
101
        return 0;
100
102
    if(adts->write_adts)
101
103
        adts_write_frame_header(s, pkt->size);
102
104
    put_buffer(pb, pkt->data, pkt->size);
 
105
    put_flush_packet(pb);
103
106
 
104
107
    return 0;
105
108
}
106
109
 
107
 
#ifdef CONFIG_MUXERS
108
 
static AVOutputFormat adts_oformat = {
 
110
AVOutputFormat adts_muxer = {
109
111
    "adts",
110
112
    "ADTS AAC",
111
113
    "audio/aac",
117
119
    adts_write_packet,
118
120
    adts_write_trailer,
119
121
};
120
 
#endif //CONFIG_MUXERS
121
 
 
122
 
int ff_adts_init(void)
123
 
{
124
 
#ifdef CONFIG_MUXERS
125
 
    av_register_output_format(&adts_oformat);
126
 
#endif //CONFIG_MUXERS
127
 
    return 0;
128
 
}