Compare commits
2 Commits
n2.7.7
...
release/2.
Author | SHA1 | Date | |
---|---|---|---|
|
2b6bc8e340 | ||
|
470bdd397f |
@@ -193,6 +193,8 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
|
|||||||
|
|
||||||
if (sep)
|
if (sep)
|
||||||
p = sep + 1;
|
p = sep + 1;
|
||||||
|
else
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ctx->playpath) {
|
if (ctx->playpath) {
|
||||||
|
@@ -82,7 +82,11 @@ static uint64_t vp8_gptopts(AVFormatContext *s, int idx,
|
|||||||
struct ogg *ogg = s->priv_data;
|
struct ogg *ogg = s->priv_data;
|
||||||
struct ogg_stream *os = ogg->streams + idx;
|
struct ogg_stream *os = ogg->streams + idx;
|
||||||
|
|
||||||
uint64_t pts = (granule >> 32);
|
int invcnt = !((granule >> 30) & 3);
|
||||||
|
// If page granule is that of an invisible vp8 frame, its pts will be
|
||||||
|
// that of the end of the next visible frame. We substract 1 for those
|
||||||
|
// to prevent messing up pts calculations.
|
||||||
|
uint64_t pts = (granule >> 32) - invcnt;
|
||||||
uint32_t dist = (granule >> 3) & 0x07ffffff;
|
uint32_t dist = (granule >> 3) & 0x07ffffff;
|
||||||
|
|
||||||
if (!dist)
|
if (!dist)
|
||||||
|
Reference in New Issue
Block a user