comparison ffm.c @ 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
comparison
equal deleted inserted replaced
5:39c4c4336486 6:b681d968f227
230 230
231 pts = fst->pts; 231 pts = fst->pts;
232 /* packet size & key_frame */ 232 /* packet size & key_frame */
233 header[0] = stream_index; 233 header[0] = stream_index;
234 header[1] = 0; 234 header[1] = 0;
235 if (st->codec.coded_picture->key_frame) 235 if (st->codec.coded_picture && st->codec.coded_picture->key_frame)
236 header[1] |= FLAG_KEY_FRAME; 236 header[1] |= FLAG_KEY_FRAME;
237 header[2] = (size >> 16) & 0xff; 237 header[2] = (size >> 16) & 0xff;
238 header[3] = (size >> 8) & 0xff; 238 header[3] = (size >> 8) & 0xff;
239 header[4] = size & 0xff; 239 header[4] = size & 0xff;
240 header[5] = (duration >> 16) & 0xff; 240 header[5] = (duration >> 16) & 0xff;