Mercurial > libavformat.hg
comparison sol.c @ 820:feca73904e67 libavformat
changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
author | michael |
---|---|
date | Sun, 17 Jul 2005 22:24:36 +0000 |
parents | c5077fdab490 |
children | da1d5db0ce5c |
comparison
equal
deleted
inserted
replaced
819:a6c035e7f429 | 820:feca73904e67 |
---|---|
111 | 111 |
112 /* now we are ready: build format streams */ | 112 /* now we are ready: build format streams */ |
113 st = av_new_stream(s, 0); | 113 st = av_new_stream(s, 0); |
114 if (!st) | 114 if (!st) |
115 return -1; | 115 return -1; |
116 st->codec.codec_type = CODEC_TYPE_AUDIO; | 116 st->codec->codec_type = CODEC_TYPE_AUDIO; |
117 st->codec.codec_tag = id; | 117 st->codec->codec_tag = id; |
118 st->codec.codec_id = codec; | 118 st->codec->codec_id = codec; |
119 st->codec.channels = channels; | 119 st->codec->channels = channels; |
120 st->codec.sample_rate = rate; | 120 st->codec->sample_rate = rate; |
121 av_set_pts_info(st, 64, 1, rate); | 121 av_set_pts_info(st, 64, 1, rate); |
122 return 0; | 122 return 0; |
123 } | 123 } |
124 | 124 |
125 #define MAX_SIZE 4096 | 125 #define MAX_SIZE 4096 |