Mercurial > libavformat.hg
comparison swfenc.c @ 4689:fc0a165de804 libavformat
Reorder arguments for av_fifo_generic_read to be more logical and
consistent with av_fifo_generic_write.
author | reimar |
---|---|
date | Mon, 09 Mar 2009 17:47:47 +0000 |
parents | d6eb19c43e99 |
children | 7aa7c5853bb6 |
comparison
equal
deleted
inserted
replaced
4688:0905585d48fd | 4689:fc0a165de804 |
---|---|
417 if (swf->audio_enc && av_fifo_size(swf->audio_fifo)) { | 417 if (swf->audio_enc && av_fifo_size(swf->audio_fifo)) { |
418 int frame_size = av_fifo_size(swf->audio_fifo); | 418 int frame_size = av_fifo_size(swf->audio_fifo); |
419 put_swf_tag(s, TAG_STREAMBLOCK | TAG_LONG); | 419 put_swf_tag(s, TAG_STREAMBLOCK | TAG_LONG); |
420 put_le16(pb, swf->sound_samples); | 420 put_le16(pb, swf->sound_samples); |
421 put_le16(pb, 0); // seek samples | 421 put_le16(pb, 0); // seek samples |
422 av_fifo_generic_read(swf->audio_fifo, frame_size, &put_buffer, pb); | 422 av_fifo_generic_read(swf->audio_fifo, pb, frame_size, &put_buffer); |
423 put_swf_end_tag(s); | 423 put_swf_end_tag(s); |
424 | 424 |
425 /* update FIFO */ | 425 /* update FIFO */ |
426 swf->sound_samples = 0; | 426 swf->sound_samples = 0; |
427 } | 427 } |