Mercurial > libavformat.hg
changeset 6:b681d968f227 libavformat
Fix a crash caused by a null coded_picture pointer in ffserver.
author | philipjsg |
---|---|
date | Mon, 09 Dec 2002 02:53:55 +0000 |
parents | 39c4c4336486 |
children | 47e502ac6349 |
files | ffm.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ffm.c Wed Dec 04 10:04:03 2002 +0000 +++ b/ffm.c Mon Dec 09 02:53:55 2002 +0000 @@ -232,7 +232,7 @@ /* packet size & key_frame */ header[0] = stream_index; header[1] = 0; - if (st->codec.coded_picture->key_frame) + if (st->codec.coded_picture && st->codec.coded_picture->key_frame) header[1] |= FLAG_KEY_FRAME; header[2] = (size >> 16) & 0xff; header[3] = (size >> 8) & 0xff;