mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-29 02:33:04 +00:00
amr: use av_assert()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
47f8303069
commit
17bbb818ae
@ -25,6 +25,7 @@ Write and read amr data according to RFC3267, http://www.ietf.org/rfc/rfc3267.tx
|
|||||||
Only mono files are supported.
|
Only mono files are supported.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
@ -143,9 +144,7 @@ static int amr_read_packet(AVFormatContext *s,
|
|||||||
size=packed_size[mode];
|
size=packed_size[mode];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
av_assert0(0);
|
||||||
assert(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( (size==0) || av_new_packet(pkt, size))
|
if ( (size==0) || av_new_packet(pkt, size))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user