aic->sample_size = (st->codecpar->channels *av_get_bits_per_sample(st->codecpar->codec_id)) /8;if(!aic->sample_size) { av_log(s, AV_LOG_ERROR,"could not compute sample size\n");return-1; } aic->samples_per_frame = samples_per_frame; aic->samples = aic->samples_per_fram...
g_assert (gdk_pixbuf_get_bits_per_sample(pixbuf) ==8);/* First grab a pointer to the raw pixel data. */data = gdk_pixbuf_get_pixels (pixbuf);/* Find the number of bytes per row (could be padded). */rowstride = gdk_pixbuf_get_rowstride (pixbuf); width = gdk_pixbuf_get_width...