Mercurial > libavformat.hg
annotate rtp_mpv.h @ 3240:78153a85dccc libavformat
Ensure that the timestamp reading code used for seeking chooses a position
which is a multiple of the packet size from the last packet start instead
of the file start. This fixes some seek issues with randomly cut ts files
and the mysterious "4 byte PCR somehing MTS something bug".
author | michael |
---|---|
date | Wed, 23 Apr 2008 21:16:25 +0000 |
parents | 149800f1778e |
children | bf39ed8d3d69 |
rev | line source |
---|---|
2406
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
1 /* |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
2 * RTP definitions |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
3 * |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
4 * This file is part of FFmpeg. |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
5 * |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
6 * FFmpeg is free software; you can redistribute it and/or |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
7 * modify it under the terms of the GNU Lesser General Public |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
8 * License as published by the Free Software Foundation; either |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
9 * version 2.1 of the License, or (at your option) any later version. |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
10 * |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
11 * FFmpeg is distributed in the hope that it will be useful, |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
14 * Lesser General Public License for more details. |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
15 * |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
16 * You should have received a copy of the GNU Lesser General Public |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
17 * License along with FFmpeg; if not, write to the Free Software |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
19 */ |
2620
792383dd085e
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
2407
diff
changeset
|
20 #ifndef FFMPEG_RTP_MPV_H |
792383dd085e
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
2407
diff
changeset
|
21 #define FFMPEG_RTP_MPV_H |
2406
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
22 |
2779 | 23 #include "avformat.h" |
24 | |
2406
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
25 void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size); |
18e94e5989d8
Move the RTP packetization code for MPEG12 video in its own file (rtp_mpv.c)
lucabe
parents:
diff
changeset
|
26 |
2620
792383dd085e
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
2407
diff
changeset
|
27 #endif /* FFMPEG_RTP_MPV_H */ |