提交 eac778de 编写于 作者: R Reimar Döffinger

Some minor spelling fixes.

Signed-off-by: NReimar Döffinger <Reimar.Doeffinger@gmx.de>
上级 4d2f9911
...@@ -468,7 +468,7 @@ static inline int get16(const uint8_t **pp, const uint8_t *p_end) ...@@ -468,7 +468,7 @@ static inline int get16(const uint8_t **pp, const uint8_t *p_end)
return c; return c;
} }
/* read and allocate a DVB string preceeded by its length */ /* read and allocate a DVB string preceded by its length */
static char *getstr8(const uint8_t **pp, const uint8_t *p_end) static char *getstr8(const uint8_t **pp, const uint8_t *p_end)
{ {
int len; int len;
...@@ -1712,7 +1712,7 @@ static int handle_packet(MpegTSContext *ts, const uint8_t *packet) ...@@ -1712,7 +1712,7 @@ static int handle_packet(MpegTSContext *ts, const uint8_t *packet)
return 0; return 0;
p = packet + 4; p = packet + 4;
if (has_adaptation) { if (has_adaptation) {
/* skip adapation field */ /* skip adaptation field */
p += p[0] + 1; p += p[0] + 1;
} }
/* if past the end of packet, ignore */ /* if past the end of packet, ignore */
...@@ -1790,7 +1790,7 @@ static int read_packet(AVFormatContext *s, uint8_t *buf, int raw_packet_size) ...@@ -1790,7 +1790,7 @@ static int read_packet(AVFormatContext *s, uint8_t *buf, int raw_packet_size)
len = avio_read(pb, buf, TS_PACKET_SIZE); len = avio_read(pb, buf, TS_PACKET_SIZE);
if (len != TS_PACKET_SIZE) if (len != TS_PACKET_SIZE)
return len < 0 ? len : AVERROR_EOF; return len < 0 ? len : AVERROR_EOF;
/* check paquet sync byte */ /* check packet sync byte */
if (buf[0] != 0x47) { if (buf[0] != 0x47) {
/* find a new packet start */ /* find a new packet start */
avio_seek(pb, -TS_PACKET_SIZE, SEEK_CUR); avio_seek(pb, -TS_PACKET_SIZE, SEEK_CUR);
...@@ -1938,7 +1938,7 @@ static int mpegts_read_header(AVFormatContext *s, ...@@ -1938,7 +1938,7 @@ static int mpegts_read_header(AVFormatContext *s,
if (s->iformat == &ff_mpegts_demuxer) { if (s->iformat == &ff_mpegts_demuxer) {
/* normal demux */ /* normal demux */
/* first do a scaning to get all the services */ /* first do a scanning to get all the services */
/* NOTE: We attempt to seek on non-seekable files as well, as the /* NOTE: We attempt to seek on non-seekable files as well, as the
* probe buffer usually is big enough. Only warn if the seek failed * probe buffer usually is big enough. Only warn if the seek failed
* on files where the seek should work. */ * on files where the seek should work. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册