mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
pktdumper: Use a custom define instead of PATH_MAX for buffers
PATH_MAX is not necessarily available on all systems, e.g. it's normally not available on MSVC, and is not guaranteed to defined on a POSIX system either. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
bcc44873d9
commit
21411a4102
@ -31,6 +31,8 @@
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
#define FILENAME_BUF_SIZE 4096
|
||||
|
||||
#include "libavutil/avstring.h"
|
||||
#include "libavutil/time.h"
|
||||
#include "libavformat/avformat.h"
|
||||
@ -49,8 +51,8 @@ static int usage(int ret)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
char fntemplate[PATH_MAX];
|
||||
char pktfilename[PATH_MAX];
|
||||
char fntemplate[FILENAME_BUF_SIZE];
|
||||
char pktfilename[FILENAME_BUF_SIZE];
|
||||
AVFormatContext *fctx = NULL;
|
||||
AVPacket pkt;
|
||||
int64_t pktnum = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user