mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-24 07:50:11 +01:00
rtpdec_xiph: switch to av_assert()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -27,12 +27,11 @@
|
|||||||
* @author Josh Allmann <joshua.allmann@gmail.com>
|
* @author Josh Allmann <joshua.allmann@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/avstring.h"
|
#include "libavutil/avstring.h"
|
||||||
#include "libavutil/base64.h"
|
#include "libavutil/base64.h"
|
||||||
#include "libavcodec/bytestream.h"
|
#include "libavcodec/bytestream.h"
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
#include "rtpdec.h"
|
#include "rtpdec.h"
|
||||||
#include "rtpdec_formats.h"
|
#include "rtpdec_formats.h"
|
||||||
|
|
||||||
@@ -183,7 +182,7 @@ static int xiph_handle_packet(AVFormatContext * ctx,
|
|||||||
data->timestamp = *timestamp;
|
data->timestamp = *timestamp;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
assert(fragmented < 4);
|
av_assert1(fragmented < 4);
|
||||||
if (data->timestamp != *timestamp) {
|
if (data->timestamp != *timestamp) {
|
||||||
// skip if fragmented timestamp is incorrect;
|
// skip if fragmented timestamp is incorrect;
|
||||||
// a start packet has been lost somewhere
|
// a start packet has been lost somewhere
|
||||||
|
|||||||
Reference in New Issue
Block a user