~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavformat/adtsenc.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20081226001006-wd8cuqn8d81smkdp
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * ADTS muxer.
3
3
 * Copyright (c) 2006 Baptiste Coudurier <baptiste.coudurier@smartjog.com>
4
 
 *                    Mans Rullgard <mru@inprovide.com>
 
4
 *                    Mans Rullgard <mans@mansr.com>
5
5
 *
6
6
 * This file is part of FFmpeg.
7
7
 *
84
84
    put_bits(&pb, 2, 0);        /* number_of_raw_data_blocks_in_frame */
85
85
 
86
86
    flush_put_bits(&pb);
87
 
    put_buffer(&s->pb, buf, ADTS_HEADER_SIZE);
88
 
 
89
 
    return 0;
90
 
}
91
 
 
92
 
static int adts_write_trailer(AVFormatContext *s)
93
 
{
 
87
    put_buffer(s->pb, buf, ADTS_HEADER_SIZE);
 
88
 
94
89
    return 0;
95
90
}
96
91
 
97
92
static int adts_write_packet(AVFormatContext *s, AVPacket *pkt)
98
93
{
99
94
    ADTSContext *adts = s->priv_data;
100
 
    ByteIOContext *pb = &s->pb;
 
95
    ByteIOContext *pb = s->pb;
101
96
 
102
97
    if (!pkt->size)
103
98
        return 0;
119
114
    CODEC_ID_NONE,
120
115
    adts_write_header,
121
116
    adts_write_packet,
122
 
    adts_write_trailer,
123
117
};