OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ce16b3
)
segfault fix
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 24 Mar 2005 21:27:54 +0000
(21:27 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 24 Mar 2005 21:27:54 +0000
(21:27 +0000)
Originally committed as revision 4079 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/avidec.c
patch
|
blob
|
history
diff --git
a/libavformat/avidec.c
b/libavformat/avidec.c
index
bba0237
..
058c886
100644
(file)
--- a/
libavformat/avidec.c
+++ b/
libavformat/avidec.c
@@
-451,7
+451,7
@@
resync:
index= av_index_search_timestamp(st, pkt->dts, 0);
e= &st->index_entries[index];
- if(e->timestamp == ast->frame_offset){
+ if(
index >= 0 &&
e->timestamp == ast->frame_offset){
if (e->flags & AVINDEX_KEYFRAME)
pkt->flags |= PKT_FLAG_KEY;
}