Mercurial > libavformat.hg
changeset 718:ff85dfd59176 libavformat
segfault fix
author | michael |
---|---|
date | Thu, 24 Mar 2005 21:27:54 +0000 |
parents | a79f89d39c3c |
children | 0ab9b7331748 |
files | avidec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/avidec.c Thu Mar 24 01:51:57 2005 +0000 +++ b/avidec.c Thu Mar 24 21:27:54 2005 +0000 @@ -451,7 +451,7 @@ 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; }