lavf: Explicitly convert types at function pointer assignment

This fixes a number of "assignment from incompatible pointer type" warnings.
This commit is contained in:
Diego Biurrun
2015-02-10 16:02:30 +01:00
parent 9c80740507
commit b97f427fb5
3 changed files with 8 additions and 3 deletions

View File

@@ -427,7 +427,8 @@ static int swf_write_video(AVFormatContext *s,
put_swf_tag(s, TAG_STREAMBLOCK | TAG_LONG);
avio_wl16(pb, swf->sound_samples);
avio_wl16(pb, 0); // seek samples
av_fifo_generic_read(swf->audio_fifo, pb, frame_size, &avio_write);
av_fifo_generic_read(swf->audio_fifo, pb, frame_size,
(void (*)(void *, void *, int)) &avio_write);
put_swf_end_tag(s);
/* update FIFO */