Mercurial > libavformat.hg
comparison yuv4mpeg.c @ 537:558a093b04db libavformat
do not call (av_)abort()
author | michael |
---|---|
date | Fri, 01 Oct 2004 13:16:16 +0000 |
parents | 0fdc96c2f2fe |
children | 6c5c8feed381 |
comparison
equal
deleted
inserted
replaced
536:76c47c58064f | 537:558a093b04db |
---|---|
212 width = st->codec.width; | 212 width = st->codec.width; |
213 height = st->codec.height; | 213 height = st->codec.height; |
214 | 214 |
215 packet_size = avpicture_get_size(st->codec.pix_fmt, width, height); | 215 packet_size = avpicture_get_size(st->codec.pix_fmt, width, height); |
216 if (packet_size < 0) | 216 if (packet_size < 0) |
217 av_abort(); | 217 return -1; |
218 | 218 |
219 if (av_new_packet(pkt, packet_size) < 0) | 219 if (av_new_packet(pkt, packet_size) < 0) |
220 return AVERROR_IO; | 220 return AVERROR_IO; |
221 | 221 |
222 pkt->stream_index = 0; | 222 pkt->stream_index = 0; |