comparison rmenc.c @ 6066:490c440a53e7 libavformat

Reindent after r23361. Patch by Francesco Lavra <francescolavra interfree it>.
author rbultje
date Fri, 28 May 2010 18:21:57 +0000
parents 441608273a5c
children
comparison
equal deleted inserted replaced
6065:441608273a5c 6066:490c440a53e7
59 put_byte(s, *tag++); 59 put_byte(s, *tag++);
60 } 60 }
61 } 61 }
62 62
63 static int rv10_write_header(AVFormatContext *ctx, 63 static int rv10_write_header(AVFormatContext *ctx,
64 int data_size, int index_pos) 64 int data_size, int index_pos)
65 { 65 {
66 RMMuxContext *rm = ctx->priv_data; 66 RMMuxContext *rm = ctx->priv_data;
67 ByteIOContext *s = ctx->pb; 67 ByteIOContext *s = ctx->pb;
68 StreamInfo *stream; 68 StreamInfo *stream;
69 unsigned char *data_offset_ptr, *start_ptr; 69 unsigned char *data_offset_ptr, *start_ptr;
355 buf1= (uint8_t*) av_malloc( size * sizeof(uint8_t) ); 355 buf1= (uint8_t*) av_malloc( size * sizeof(uint8_t) );
356 356
357 write_packet_header(s, stream, size, !!(flags & AV_PKT_FLAG_KEY)); 357 write_packet_header(s, stream, size, !!(flags & AV_PKT_FLAG_KEY));
358 358
359 if (stream->enc->codec_id == CODEC_ID_AC3) { 359 if (stream->enc->codec_id == CODEC_ID_AC3) {
360 /* for AC-3, the words seem to be reversed */ 360 /* for AC-3, the words seem to be reversed */
361 for(i=0;i<size;i+=2) { 361 for(i=0;i<size;i+=2) {
362 buf1[i] = buf[i+1]; 362 buf1[i] = buf[i+1];
363 buf1[i+1] = buf[i]; 363 buf1[i+1] = buf[i];
364 } 364 }
365 put_buffer(pb, buf1, size); 365 put_buffer(pb, buf1, size);
366 } else { 366 } else {
367 put_buffer(pb, buf, size); 367 put_buffer(pb, buf, size);
368 } 368 }
369 put_flush_packet(pb); 369 put_flush_packet(pb);
370 stream->nb_frames++; 370 stream->nb_frames++;