Mercurial > libavformat.hg
comparison westwood.c @ 3484:31a0f3b99ef7 libavformat
remove useless close funcs
author | bcoudurier |
---|---|
date | Thu, 19 Jun 2008 23:25:04 +0000 |
parents | 7a0230981402 |
children | 1d3d17de20ba |
comparison
equal
deleted
inserted
replaced
3483:e85a3d8478c1 | 3484:31a0f3b99ef7 |
---|---|
193 /* 2 samples/byte, 1 or 2 samples per frame depending on stereo */ | 193 /* 2 samples/byte, 1 or 2 samples per frame depending on stereo */ |
194 wsaud->audio_frame_counter += (chunk_size * 2) / wsaud->audio_channels; | 194 wsaud->audio_frame_counter += (chunk_size * 2) / wsaud->audio_channels; |
195 | 195 |
196 return ret; | 196 return ret; |
197 } | 197 } |
198 | |
199 static int wsaud_read_close(AVFormatContext *s) | |
200 { | |
201 // WsAudDemuxContext *wsaud = s->priv_data; | |
202 | |
203 return 0; | |
204 } | |
205 | |
206 | 198 |
207 static int wsvqa_probe(AVProbeData *p) | 199 static int wsvqa_probe(AVProbeData *p) |
208 { | 200 { |
209 /* need 12 bytes to qualify */ | 201 /* need 12 bytes to qualify */ |
210 if (p->buf_size < 12) | 202 if (p->buf_size < 12) |
376 } | 368 } |
377 | 369 |
378 return ret; | 370 return ret; |
379 } | 371 } |
380 | 372 |
381 static int wsvqa_read_close(AVFormatContext *s) | |
382 { | |
383 // WsVqaDemuxContext *wsvqa = s->priv_data; | |
384 | |
385 return 0; | |
386 } | |
387 | |
388 #ifdef CONFIG_WSAUD_DEMUXER | 373 #ifdef CONFIG_WSAUD_DEMUXER |
389 AVInputFormat wsaud_demuxer = { | 374 AVInputFormat wsaud_demuxer = { |
390 "wsaud", | 375 "wsaud", |
391 NULL_IF_CONFIG_SMALL("Westwood Studios audio format"), | 376 NULL_IF_CONFIG_SMALL("Westwood Studios audio format"), |
392 sizeof(WsAudDemuxContext), | 377 sizeof(WsAudDemuxContext), |
393 wsaud_probe, | 378 wsaud_probe, |
394 wsaud_read_header, | 379 wsaud_read_header, |
395 wsaud_read_packet, | 380 wsaud_read_packet, |
396 wsaud_read_close, | |
397 }; | 381 }; |
398 #endif | 382 #endif |
399 #ifdef CONFIG_WSVQA_DEMUXER | 383 #ifdef CONFIG_WSVQA_DEMUXER |
400 AVInputFormat wsvqa_demuxer = { | 384 AVInputFormat wsvqa_demuxer = { |
401 "wsvqa", | 385 "wsvqa", |
402 NULL_IF_CONFIG_SMALL("Westwood Studios VQA format"), | 386 NULL_IF_CONFIG_SMALL("Westwood Studios VQA format"), |
403 sizeof(WsVqaDemuxContext), | 387 sizeof(WsVqaDemuxContext), |
404 wsvqa_probe, | 388 wsvqa_probe, |
405 wsvqa_read_header, | 389 wsvqa_read_header, |
406 wsvqa_read_packet, | 390 wsvqa_read_packet, |
407 wsvqa_read_close, | |
408 }; | 391 }; |
409 #endif | 392 #endif |