ffmpeg/libavformat
Martin Storsjö 62d0a7453a aviobuf: Write new data at s->buf_end in fill_buffer
In most cases, s->buf_ptr will be equal to s->buf_end when
fill_buffer is called, but this may not always be the case, if
we're seeking forward by reading (permitted by the short seek
threshold).

If fill_buffer is writing to s->buf_ptr instead of s->buf_end (when
they aren't equal and s->buf_ptr is ahead of s->buffer), the data
between s->buf_ptr and s->buf_end is overwritten, leading to
inconsistent buffer content. This could return incorrect data if
later seeking back into the area before the current s->buf_ptr.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit e360ada2d13af36ab7afd9ebcd2bd236d23d9b96)
2011-03-03 14:15:09 +01:00
..
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-02-22 02:44:37 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:09 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2010-11-03 20:12:07 +00:00
2011-03-03 14:15:03 +01:00
2008-12-13 21:58:17 +00:00
2011-03-03 14:15:03 +01:00
2011-01-30 03:41:48 +01:00
2010-06-30 15:38:06 +00:00
2011-03-03 14:15:03 +01:00
2009-12-13 20:51:38 +00:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-02-23 18:22:02 +01:00
2011-02-22 02:44:37 +01:00
2011-03-03 14:15:03 +01:00
2011-02-16 23:00:30 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-01-30 03:41:48 +01:00
2011-03-03 14:15:09 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-01-30 03:41:00 +01:00
2011-02-22 02:44:37 +01:00
2011-01-30 03:41:48 +01:00
2011-03-03 14:15:03 +01:00
2011-02-22 02:44:37 +01:00
2011-02-23 18:22:03 +01:00
2011-03-03 14:15:03 +01:00
2010-04-16 12:21:29 +00:00
2011-03-03 14:15:03 +01:00
2011-02-09 03:31:17 +01:00
2011-02-22 02:44:37 +01:00
2011-03-03 14:15:03 +01:00
2010-08-30 21:17:34 +00:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2010-07-20 14:13:24 +00:00
2010-07-20 14:13:24 +00:00
2011-03-03 14:15:03 +01:00
2009-07-31 06:49:36 +00:00
2010-08-16 14:21:17 +00:00
2010-08-16 14:21:17 +00:00
2011-02-23 18:22:03 +01:00
2010-07-19 11:50:07 +00:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-02-22 02:44:37 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-02-23 18:22:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-02-23 18:22:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00
2011-03-03 14:15:03 +01:00