aviobuf: Fix warning about discarded qualifier

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
jamal 2012-07-27 05:23:23 -03:00 committed by Michael Niedermayer
parent a2cd13f04f
commit c49e0d2cdd

View File

@ -122,7 +122,7 @@ AVIOContext *avio_alloc_context(
static void writeout(AVIOContext *s, const uint8_t *data, int len)
{
if (s->write_packet && !s->error){
int ret= s->write_packet(s->opaque, data, len);
int ret= s->write_packet(s->opaque, (uint8_t *)data, len);
if(ret < 0){
s->error = ret;
}