aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Ross2018-11-20 18:51:52 +1100
committerMichael Niedermayer2018-11-21 00:33:38 +0100
commit7cda7d217cd0e9eaa38cc0d5dbbb6204b92fce97 (patch)
treede148e13ce82d6658e981f29daa2b7c877e2139b
parent57815cfad5c5d6beb6f3fc0ae86b050a970d3a08 (diff)
api-h264-slice-test: use av_be2ne16 instead of ntohs
avformat/network.h is not required here. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--tests/api/api-h264-slice-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/api-h264-slice-test.c b/tests/api/api-h264-slice-test.c
index be03e80049..c6614da34d 100644
--- a/tests/api/api-h264-slice-test.c
+++ b/tests/api/api-h264-slice-test.c
@@ -41,10 +41,10 @@
#include <sys/stat.h>
#include <fcntl.h>
-#include "libavformat/network.h"
#include "libavcodec/avcodec.h"
#include "libavutil/pixdesc.h"
#include "libavutil/hash.h"
+#include "libavutil/bswap.h"
static int header = 0;
@@ -191,7 +191,7 @@ int main(int argc, char **argv)
if (ret != sizeof(uint16_t))
break;
- size = ntohs(size);
+ size = av_be2ne16(size);
ret = fread(p, 1, size, file);
if (ret != size) {
perror("Couldn't read data");