Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adec: avoid deprecated av_get_bits_per_sample_fmt()

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information...
commit b2fae76ec98a1933f3f6c2e3057734cc061dd39c 1 parent 9c3354d
@felipec authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 gstav_adec.c
View
4 gstav_adec.c
@@ -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.
Something went wrong with that request. Please try again.