[FFmpeg-devel] [PATCH v2 1/2] avformat/aviobuf: fix avio_flush() for read streams

Michael Niedermayer michaelni at gmx.at
Tue Sep 30 21:55:31 CEST 2014


On Tue, Sep 30, 2014 at 06:46:48PM +0200, wm4 wrote:
> avio_flush() did nothing useful for read streams. Fix it to behave as
> expected, and discard the currently read buffer properly.
> ---
> In addition to v1, also make sure that avio_flush() never enters the
> write path with read streams. This wasn't ensured before. avio_close()
> calls avio_flush() unconditionally, so this might even fix a bug.
> ---
>  libavformat/avio.h    | 8 ++++++--
>  libavformat/aviobuf.c | 4 +++-
>  2 files changed, 9 insertions(+), 3 deletions(-)

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140930/04e86b93/attachment.asc>


More information about the ffmpeg-devel mailing list