Permalink
Browse files

adec: avoid deprecated av_get_bits_per_sample_fmt()

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information...
1 parent 9c3354d commit b2fae76ec98a1933f3f6c2e3057734cc061dd39c @felipec committed Jul 15, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 gstav_adec.c
View
@@ -198,7 +198,11 @@ pad_chain(GstPad *pad, GstBuffer *buf)
goto leave;
}
+#ifdef FF_API_GET_BITS_PER_SAMPLE_FMT
bps = av_get_bits_per_sample_fmt(av_ctx->sample_fmt);
+#else
+ bps = av_get_bytes_per_sample(av_ctx->sample_fmt) << 3;
+#endif
self->bps = bps;
s = gst_structure_new("audio/x-raw-int",

0 comments on commit b2fae76

Please sign in to comment.