1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Cosmetic changes.

Originally committed as revision 24944 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Tobias Bindhammer 2010-08-26 10:03:14 +00:00
parent 2fdb2b5438
commit 133cc989dd

View File

@ -32,7 +32,7 @@ typedef struct A64MuxerContext {
static int a64_write_header(struct AVFormatContext *s) static int a64_write_header(struct AVFormatContext *s)
{ {
AVCodecContext *avctx=s->streams[0]->codec; AVCodecContext *avctx = s->streams[0]->codec;
A64MuxerContext *c = s->priv_data; A64MuxerContext *c = s->priv_data;
uint8_t header[5] = { uint8_t header[5] = {
0x00, //load 0x00, //load
@ -111,16 +111,16 @@ static int a64_write_packet(struct AVFormatContext *s, AVPacket *pkt)
put_buffer(s->pb, pkt->data + ch_chunksize * i, ch_chunksize); put_buffer(s->pb, pkt->data + ch_chunksize * i, ch_chunksize);
} }
else { else {
/* a bit ugly, but is there an alternative to put many zeros? */ /* a bit ugly, but is there an alternative to put many zeros? */
for(j = 0; j < ch_chunksize; j++) put_byte(s->pb, 0); for(j = 0; j < ch_chunksize; j++) put_byte(s->pb, 0);
} }
if(c->prev_pkt.data) { if(c->prev_pkt.data) {
/* put frame (screen + colram) from last packet into buffer */ /* put frame (screen + colram) from last packet into buffer */
put_buffer(s->pb, c->prev_pkt.data + charset_size + frame_size * i, frame_size); put_buffer(s->pb, c->prev_pkt.data + charset_size + frame_size * i, frame_size);
} }
else { else {
/* a bit ugly, but is there an alternative to put many zeros? */ /* a bit ugly, but is there an alternative to put many zeros? */
for(j = 0; j < frame_size; j++) put_byte(s->pb, 0); for(j = 0; j < frame_size; j++) put_byte(s->pb, 0);
} }
} }
/* backup current packet for next turn */ /* backup current packet for next turn */