Commit 76930615 authored by philipjsg's avatar philipjsg

Fix a crash caused by a null coded_picture pointer in ffserver.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1326 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 504501c8
...@@ -232,7 +232,7 @@ static int ffm_write_packet(AVFormatContext *s, int stream_index, ...@@ -232,7 +232,7 @@ static int ffm_write_packet(AVFormatContext *s, int stream_index,
/* packet size & key_frame */ /* packet size & key_frame */
header[0] = stream_index; header[0] = stream_index;
header[1] = 0; 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[1] |= FLAG_KEY_FRAME;
header[2] = (size >> 16) & 0xff; header[2] = (size >> 16) & 0xff;
header[3] = (size >> 8) & 0xff; header[3] = (size >> 8) & 0xff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment