Mercurial > libavformat.hg
view network.h @ 1941:c2d0bdc9e6f1 libavformat
av_estimate_timings_from_pts() flushes the packet queue but doesn't
reset the streams' cur_dts values. This can lead to a fatal "error,
non monotone timestamps ..." message later, because the out-of-date
cur_dts values are used to compute some packet's dts.
Fix this by calling av_read_frame_flush() and eliminate code
duplication in the process.
The additional hunk gives more detailed error messages.
patch by Wolfram Gloger, wmglo dent.med.uni-muenchen de
author | diego |
---|---|
date | Wed, 21 Mar 2007 10:48:10 +0000 |
parents | 1f7a6dc01100 |
children | c0c0f19f0db6 |
line wrap: on
line source
/* * Copyright (c) 2007 The FFmpeg Project. * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef NETWORK_H #define NETWORK_H #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #endif