On Tue, Jul 07, 2015 at 03:06:23AM -0300, James Almer wrote: > Signed-off-by: James Almer <jamr...@gmail.com> > --- > libavcodec/libdcadec.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/libavcodec/libdcadec.c b/libavcodec/libdcadec.c > index 890d270..4bc3765 100644 > --- a/libavcodec/libdcadec.c > +++ b/libavcodec/libdcadec.c > @@ -41,6 +41,7 @@ static int dcadec_decode_frame(AVCodecContext *avctx, void > *data, > { > DCADecContext *s = avctx->priv_data; > AVFrame *frame = data; > + struct dcadec_exss_info *exss; > int ret, i, k; > int **samples, nsamples, channel_mask, sample_rate, bits_per_sample, > profile; > uint32_t mrk; > @@ -127,6 +128,24 @@ static int dcadec_decode_frame(AVCodecContext *avctx, > void *data, > } else > avctx->bit_rate = 0; > > + if (exss = dcadec_context_get_exss_info(s->ctx)) { > + enum AVMatrixEncoding matrix_encoding = AV_MATRIX_ENCODING_NONE; > + > + switch(exss->matrix_encoding) { > + case DCADEC_MATRIX_ENCODING_SURROUND: > + matrix_encoding = AV_MATRIX_ENCODING_DOLBY; > + break; > + case DCADEC_MATRIX_ENCODING_HEADPHONE:
breaks build here CC libavcodec/libdcadec.o libavcodec/libdcadec.c: In function ‘dcadec_decode_frame’: libavcodec/libdcadec.c:147:20: error: ‘struct dcadec_exss_info’ has no member named ‘matrix_encoding’ libavcodec/libdcadec.c:148:14: error: ‘DCADEC_MATRIX_ENCODING_SURROUND’ undeclared (first use in this function) libavcodec/libdcadec.c:148:14: note: each undeclared identifier is reported only once for each function it appears in libavcodec/libdcadec.c:151:14: error: ‘DCADEC_MATRIX_ENCODING_HEADPHONE’ undeclared (first use in this function) [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The bravest are surely those who have the clearest vision of what is before them, glory and danger alike, and yet notwithstanding go out to meet it. -- Thucydides
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel