OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d88e9f1
)
tools/pktdumper: update to recent avformat api
author
Janne Grunau
<janne-libav@jannau.net>
Fri, 28 Oct 2011 16:36:54 +0000
(18:36 +0200)
committer
Janne Grunau
<janne-libav@jannau.net>
Fri, 28 Oct 2011 17:08:38 +0000
(19:08 +0200)
tools/pktdumper.c
patch
|
blob
|
history
diff --git
a/tools/pktdumper.c
b/tools/pktdumper.c
index
56bc7b7
..
2da1146
100644
(file)
--- a/
tools/pktdumper.c
+++ b/
tools/pktdumper.c
@@
-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 = av
format_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;
}