Mercurial > libavformat.hg
diff dv.c @ 1123:6992dd78ff68 libavformat
Add (mostly) const to variable and parameter declaration, where a char* was
used and 'const char*' should be, plus make some function declarations
static if they aren't used outside their declaring source file.
patch by Stefan Huehner stefan%%at%%huehner%%dot%%org
author | diego |
---|---|
date | Sat, 17 Jun 2006 15:53:23 +0000 |
parents | da22d8928247 |
children | d89d7ef290da |
line wrap: on
line diff
--- a/dv.c Fri Jun 16 20:45:29 2006 +0000 +++ b/dv.c Sat Jun 17 15:53:23 2006 +0000 @@ -692,7 +692,7 @@ /* FIXME: we have to have more sensible approach than this one */ if (fifo_size(&c->audio_data[i], c->audio_data[i].rptr) + data_size >= 100*AVCODEC_MAX_AUDIO_FRAME_SIZE) av_log(st->codec, AV_LOG_ERROR, "Can't process DV frame #%d. Insufficient video data or severe sync problem.\n", c->frames); - fifo_write(&c->audio_data[i], (uint8_t *)data, data_size, &c->audio_data[i].wptr); + fifo_write(&c->audio_data[i], data, data_size, &c->audio_data[i].wptr); } } out: