History

api-h264-slice-test: use av_be2ne16 instead of ntohs

avformat/network.h is not required here.

Peter Ross committed 7 years ago

Commit 7cda7d21 parent 57815cf1 file · +2 −2Browse files

Showing the changes to tests/api (1 of 1 file). Show all

Unified · Split

tests/api/api-h264-slice-test.c+2−2
@@ -41,10 +41,10 @@ · 40 unmodified lines
4141 #include <sys/stat.h>
4242 #include <fcntl.h>
4343
44−#include "libavformat/network.h"
4544 #include "libavcodec/avcodec.h"
4645 #include "libavutil/pixdesc.h"
4746 #include "libavutil/hash.h"
47+#include "libavutil/bswap.h"
4848
4949 static int header = 0;
5050
@@ -191,7 +191,7 @@ int main(int argc, char **argv) · 140 unmodified lines
191191 if (ret != sizeof(uint16_t))
192192 break;
193193
194− size = ntohs(size);
194+ size = av_be2ne16(size);
195195 ret = fread(p, 1, size, file);
196196 if (ret != size) {
197197 perror("Couldn't read data");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t