Mercurial > mplayer.hg
changeset 30576:24a5dc9d1466
Add separate header for mp_a52_framesize(); avoids forward declarations.
author | diego |
---|---|
date | Wed, 17 Feb 2010 22:40:50 +0000 |
parents | ec7569a7deb1 |
children | 737b7fd47ef4 |
files | libmpdemux/demux_ts.c libmpdemux/demux_ts.h libmpdemux/muxer_mpeg.c |
diffstat | 3 files changed, 28 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c Wed Feb 17 22:33:21 2010 +0000 +++ b/libmpdemux/demux_ts.c Wed Feb 17 22:40:50 2010 +0000 @@ -34,9 +34,9 @@ #include "demuxer.h" #include "parse_es.h" #include "stheader.h" - #include "ms_hdr.h" #include "mpeg_hdr.h" +#include "demux_ts.h" #define TS_PH_PACKET_SIZE 192 #define TS_FEC_PACKET_SIZE 204
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libmpdemux/demux_ts.h Wed Feb 17 22:40:50 2010 +0000 @@ -0,0 +1,26 @@ +/* + * This file is part of MPlayer. + * + * MPlayer is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * MPlayer 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with MPlayer; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef MPLAYER_DEMUX_TS_H +#define MPLAYER_DEMUX_TS_H + +#include <stdint.h> + +int mp_a52_framesize(uint8_t *buf, int *srate); + +#endif /* MPLAYER_DEMUX_TS_H */
--- a/libmpdemux/muxer_mpeg.c Wed Feb 17 22:33:21 2010 +0000 +++ b/libmpdemux/muxer_mpeg.c Wed Feb 17 22:40:50 2010 +0000 @@ -32,6 +32,7 @@ #include "stream/stream.h" #include "muxer.h" #include "demuxer.h" +#include "demux_ts.h" #include "stheader.h" #include "m_option.h" #include "aac_hdr.h" @@ -232,8 +233,6 @@ {NULL, NULL, 0, 0, 0, 0, NULL} }; -int mp_a52_framesize(uint8_t *buf, int *srate); - static void fix_audio_sys_header(muxer_priv_t *priv, uint8_t id, uint8_t newid, uint32_t size) { uint8_t i;