diff options
author | Compn <tempn@twmi.rr.com> | 2011-05-16 23:31:23 -0400 |
---|---|---|
committer | Compn <tempn@twmi.rr.com> | 2011-05-16 23:31:23 -0400 |
commit | 34b92dbd942f6aef50632bf86eb87bf3b0175b26 (patch) | |
tree | 0b66894590a0778142fc1ddefa0a466a21efbe4f /tools/pktdumper.c | |
parent | cb8b824a0899a086ed22eef84b0eedbcab6788c9 (diff) | |
parent | f8ae3a2108b612776e886d927b4a7289dde619f1 (diff) | |
download | ffmpeg-34b92dbd942f6aef50632bf86eb87bf3b0175b26.tar.gz |
Merge branch 'master' of git.videolan.org:ffmpeg
Diffstat (limited to 'tools/pktdumper.c')
-rw-r--r-- | tools/pktdumper.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/pktdumper.c b/tools/pktdumper.c index ee60414060..ddb4b2b9fb 100644 --- a/tools/pktdumper.c +++ b/tools/pktdumper.c @@ -104,7 +104,11 @@ int main(int argc, char **argv) //printf("open(\"%s\")\n", pktfilename); if (!nowrite) { fd = open(pktfilename, O_WRONLY|O_CREAT, 0644); - write(fd, pkt.data, pkt.size); + err = write(fd, pkt.data, pkt.size); + if (err < 0) { + fprintf(stderr, "write: error %d\n", err); + return 1; + } close(fd); } av_free_packet(&pkt); |