Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
99622f66
Commit
99622f66
authored
Jul 08, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegaudioenc: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a6a085a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mpegaudioenc.c
libavcodec/mpegaudioenc.c
+4
-4
No files found.
libavcodec/mpegaudioenc.c
View file @
99622f66
...
@@ -404,7 +404,7 @@ static void compute_scale_factors(unsigned char scale_code[SBLIMIT],
...
@@ -404,7 +404,7 @@ static void compute_scale_factors(unsigned char scale_code[SBLIMIT],
av_dlog
(
NULL
,
"%2d:%d in=%x %x %d
\n
"
,
av_dlog
(
NULL
,
"%2d:%d in=%x %x %d
\n
"
,
j
,
i
,
vmax
,
scale_factor_table
[
index
],
index
);
j
,
i
,
vmax
,
scale_factor_table
[
index
],
index
);
/* store the scale factor */
/* store the scale factor */
a
ssert
(
index
>=
0
&&
index
<=
63
);
a
v_assert2
(
index
>=
0
&&
index
<=
63
);
sf
[
i
]
=
index
;
sf
[
i
]
=
index
;
}
}
...
@@ -466,7 +466,7 @@ static void compute_scale_factors(unsigned char scale_code[SBLIMIT],
...
@@ -466,7 +466,7 @@ static void compute_scale_factors(unsigned char scale_code[SBLIMIT],
sf
[
1
]
=
sf
[
2
]
=
sf
[
0
];
sf
[
1
]
=
sf
[
2
]
=
sf
[
0
];
break
;
break
;
default:
default:
a
ssert
(
0
);
//cannot happen
a
v_assert2
(
0
);
//cannot happen
code
=
0
;
/* kill warning */
code
=
0
;
/* kill warning */
}
}
...
@@ -586,7 +586,7 @@ static void compute_bit_allocation(MpegAudioContext *s,
...
@@ -586,7 +586,7 @@ static void compute_bit_allocation(MpegAudioContext *s,
}
}
}
}
*
padding
=
max_frame_size
-
current_frame_size
;
*
padding
=
max_frame_size
-
current_frame_size
;
a
ssert
(
*
padding
>=
0
);
a
v_assert0
(
*
padding
>=
0
);
}
}
/*
/*
...
@@ -701,7 +701,7 @@ static void encode_frame(MpegAudioContext *s,
...
@@ -701,7 +701,7 @@ static void encode_frame(MpegAudioContext *s,
#endif
#endif
if
(
q
[
m
]
>=
steps
)
if
(
q
[
m
]
>=
steps
)
q
[
m
]
=
steps
-
1
;
q
[
m
]
=
steps
-
1
;
a
ssert
(
q
[
m
]
>=
0
&&
q
[
m
]
<
steps
);
a
v_assert2
(
q
[
m
]
>=
0
&&
q
[
m
]
<
steps
);
}
}
bits
=
ff_mpa_quant_bits
[
qindex
];
bits
=
ff_mpa_quant_bits
[
qindex
];
if
(
bits
<
0
)
{
if
(
bits
<
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment