This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/thp: check av_get_packet() for failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.6
Paul B Mahol
11 years ago
parent
69aa79365c
commit
dc3c3758ce
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavformat/thp.c
+ 2
- 0
libavformat/thp.c
View File
@@ -176,6 +176,8 @@ static int thp_read_packet(AVFormatContext *s,
thp->frame++;
ret = av_get_packet(pb, pkt, size);
if (ret < 0)
return ret;
if (ret != size) {
av_free_packet(pkt);
return AVERROR(EIO);
Write
Preview
Loading…
Cancel
Save