mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 19:58:59 +00:00
tools/pktdumper: update to recent avformat api
This commit is contained in:
parent
d88e9f1c07
commit
d830264abd
@ -44,7 +44,7 @@ int main(int argc, char **argv)
|
||||
{
|
||||
char fntemplate[PATH_MAX];
|
||||
char pktfilename[PATH_MAX];
|
||||
AVFormatContext *fctx;
|
||||
AVFormatContext *fctx = NULL;
|
||||
AVPacket pkt;
|
||||
int64_t pktnum = 0;
|
||||
int64_t maxpkts = 0;
|
||||
@ -83,9 +83,9 @@ int main(int argc, char **argv)
|
||||
// register all file formats
|
||||
av_register_all();
|
||||
|
||||
err = av_open_input_file(&fctx, argv[1], NULL, 0, NULL);
|
||||
err = avformat_open_input(&fctx, argv[1], NULL, NULL);
|
||||
if (err < 0) {
|
||||
fprintf(stderr, "av_open_input_file: error %d\n", err);
|
||||
fprintf(stderr, "cannot open input: error %d\n", err);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user