if (stream->strh->type != GST_RIFF_FCC_vids)
return buf;
+ if (stream->strf.vids == NULL) {
+ GST_WARNING ("Failed to retrieve vids for stream");
+ return buf;
+ }
+
fourcc = (stream->strf.vids->compression) ?
stream->strf.vids->compression : stream->strh->fcc_handler;
if (!gst_avi_demux_is_uncompressed (fourcc)) {
return buf;
}
- if (stream->strf.vids == NULL) {
- GST_WARNING ("Failed to retrieve vids for stream");
- return buf;
- }
-
h = stream->strf.vids->height;
w = stream->strf.vids->width;
stride = GST_ROUND_UP_4 (w * (bpp / 8));