aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2011-10-28 18:36:54 +0200
committerJanne Grunau <janne-libav@jannau.net>2011-10-28 19:08:38 +0200
commitd830264abd6453ea983f009418f263ebcfaaa144 (patch)
tree42c9e48081eeac67635e2e6ec2bf5f54491d862e /tools
parentd88e9f1c07437c197f3b7c76454fbb5f9bb24a8f (diff)
downloadffmpeg-d830264abd6453ea983f009418f263ebcfaaa144.tar.gz
tools/pktdumper: update to recent avformat api
Diffstat (limited to 'tools')
-rw-r--r--tools/pktdumper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pktdumper.c b/tools/pktdumper.c
index 56bc7b7ce0..2da1146430 100644
--- 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 = 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;
}