Mercurial > libavformat.hg
comparison ogg.c @ 857:26aaf3eed638 libavformat
fix unused variable warnings
author | aurel |
---|---|
date | Wed, 21 Sep 2005 23:09:16 +0000 |
parents | dcf6e35ddb72 |
children | 66cc656ea404 |
comparison
equal
deleted
inserted
replaced
856:acad29abfb70 | 857:26aaf3eed638 |
---|---|
32 #ifdef CONFIG_ENCODERS | 32 #ifdef CONFIG_ENCODERS |
33 static int ogg_write_header(AVFormatContext *avfcontext) | 33 static int ogg_write_header(AVFormatContext *avfcontext) |
34 { | 34 { |
35 OggContext *context = avfcontext->priv_data; | 35 OggContext *context = avfcontext->priv_data; |
36 ogg_packet *op= &context->op; | 36 ogg_packet *op= &context->op; |
37 int n, i; | 37 int n; |
38 | 38 |
39 ogg_stream_init(&context->os, 31415); | 39 ogg_stream_init(&context->os, 31415); |
40 | 40 |
41 for(n = 0 ; n < avfcontext->nb_streams ; n++) { | 41 for(n = 0 ; n < avfcontext->nb_streams ; n++) { |
42 AVCodecContext *codec = avfcontext->streams[n]->codec; | 42 AVCodecContext *codec = avfcontext->streams[n]->codec; |
43 uint8_t *headers = codec->extradata; | 43 uint8_t *headers = codec->extradata; |
44 int headers_len = codec->extradata_size; | 44 int headers_len = codec->extradata_size; |
45 uint8_t *header_start[3]; | 45 uint8_t *header_start[3]; |
46 int header_len[3]; | 46 int header_len[3]; |
47 int i, j, hdr_type; | 47 int i, j; |
48 | 48 |
49 av_set_pts_info(avfcontext->streams[n], 60, 1, AV_TIME_BASE); | 49 av_set_pts_info(avfcontext->streams[n], 60, 1, AV_TIME_BASE); |
50 | 50 |
51 for(j=1,i=0;i<2;++i, ++j) { | 51 for(j=1,i=0;i<2;++i, ++j) { |
52 header_len[i]=0; | 52 header_len[i]=0; |