Mercurial > libavformat.hg
comparison grab_bktr.c @ 1003:2d57ce58f576 libavformat
simplify AVFormatParameters NULL checks
author | michael |
---|---|
date | Sat, 11 Mar 2006 00:22:21 +0000 |
parents | 547675092e98 |
children | 5dbdfa87d0d8 |
comparison
equal
deleted
inserted
replaced
1002:56db80b1131e | 1003:2d57ce58f576 |
---|---|
243 int frame_rate; | 243 int frame_rate; |
244 int frame_rate_base; | 244 int frame_rate_base; |
245 int format = -1; | 245 int format = -1; |
246 const char *video_device; | 246 const char *video_device; |
247 | 247 |
248 if (!ap || ap->width <= 0 || ap->height <= 0 || ap->time_base.den <= 0) | 248 if (ap->width <= 0 || ap->height <= 0 || ap->time_base.den <= 0) |
249 return -1; | 249 return -1; |
250 | 250 |
251 width = ap->width; | 251 width = ap->width; |
252 height = ap->height; | 252 height = ap->height; |
253 frame_rate = ap->time_base.den; | 253 frame_rate = ap->time_base.den; |