Revision 133cc989

View differences:

libavformat/a64.c
32 32

  
33 33
static int a64_write_header(struct AVFormatContext *s)
34 34
{
35
    AVCodecContext *avctx=s->streams[0]->codec;
35
    AVCodecContext *avctx = s->streams[0]->codec;
36 36
    A64MuxerContext *c = s->priv_data;
37 37
    uint8_t header[5] = {
38 38
        0x00, //load
......
111 111
                    put_buffer(s->pb, pkt->data + ch_chunksize * i, ch_chunksize);
112 112
                }
113 113
                else {
114
                       /* a bit ugly, but is there an alternative to put many zeros? */
115
                        for(j = 0; j < ch_chunksize; j++) put_byte(s->pb, 0);
114
                    /* a bit ugly, but is there an alternative to put many zeros? */
115
                    for(j = 0; j < ch_chunksize; j++) put_byte(s->pb, 0);
116 116
                }
117 117
                if(c->prev_pkt.data) {
118 118
                    /* put frame (screen + colram) from last packet into buffer */
119 119
                    put_buffer(s->pb, c->prev_pkt.data + charset_size + frame_size * i, frame_size);
120 120
                }
121 121
                else {
122
                       /* a bit ugly, but is there an alternative to put many zeros? */
123
                        for(j = 0; j < frame_size; j++) put_byte(s->pb, 0);
122
                    /* a bit ugly, but is there an alternative to put many zeros? */
123
                    for(j = 0; j < frame_size; j++) put_byte(s->pb, 0);
124 124
                }
125 125
            }
126 126
            /* backup current packet for next turn */

Also available in: Unified diff