mirror of https://git.ffmpeg.org/ffmpeg.git
mpegtsenc: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5f8f6243ef
commit
53eaca5d6b
|
@ -800,7 +800,7 @@ static void write_pts(uint8_t *q, int fourbits, int64_t pts)
|
||||||
static void set_af_flag(uint8_t *pkt, int flag)
|
static void set_af_flag(uint8_t *pkt, int flag)
|
||||||
{
|
{
|
||||||
// expect at least one flag to set
|
// expect at least one flag to set
|
||||||
assert(flag);
|
av_assert0(flag);
|
||||||
|
|
||||||
if ((pkt[3] & 0x20) == 0) {
|
if ((pkt[3] & 0x20) == 0) {
|
||||||
// no AF yet, set adaptation field flag
|
// no AF yet, set adaptation field flag
|
||||||
|
@ -816,7 +816,7 @@ static void set_af_flag(uint8_t *pkt, int flag)
|
||||||
static void extend_af(uint8_t *pkt, int size)
|
static void extend_af(uint8_t *pkt, int size)
|
||||||
{
|
{
|
||||||
// expect already existing adaptation field
|
// expect already existing adaptation field
|
||||||
assert(pkt[3] & 0x20);
|
av_assert0(pkt[3] & 0x20);
|
||||||
pkt[4] += size;
|
pkt[4] += size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue