Piotr Bandurski | 16 Jan 19:32 2013
Picon

[PATCH] libspeex: support ZygoAudio (quality 10 mode)

Hi,

Attached patch allows decoding of ZygoAudio saved with "quality 10" mode
(ticket 1873)

samples:

http://www.datafilehost.com/download-ecd3c09a.html

Regards
diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c
index 2ab0a8d..70b81c5 100644
--- a/libavcodec/libspeexdec.c
+++ b/libavcodec/libspeexdec.c
 <at>  <at>  -51,7 +51,17  <at>  <at>  static av_cold int libspeex_decode_init(AVCodecContext *avctx)
         if (!header)
             av_log(avctx, AV_LOG_WARNING, "Invalid Speex header\n");
     }
-    if (header) {
+    if (avctx->codec_tag == MKTAG('S', 'P', 'X', 'N')) {
+        if (!avctx->extradata || avctx->extradata && avctx->extradata_size < 47) {
+            av_log(avctx, AV_LOG_ERROR, "Missing or invalid extradata.\n");
+            return AVERROR_INVALIDDATA;
+        }
+        if (avctx->extradata[37] != 10) {
+            av_log(avctx, AV_LOG_ERROR, "Unsupported quality mode.\n");
+            return AVERROR_PATCHWELCOME;
+        }
(Continue reading)

Paul B Mahol | 16 Jan 19:40 2013
Picon

Re: [PATCH] libspeex: support ZygoAudio (quality 10 mode)

On 1/16/13, Piotr Bandurski <ami_stuff <at> o2.pl> wrote:
> Hi,
>
> Attached patch allows decoding of ZygoAudio saved with "quality 10" mode
> (ticket 1873)
>

What about other qualities?

> samples:
>
> http://www.datafilehost.com/download-ecd3c09a.html
>
> Regards
>
Piotr Bandurski | 16 Jan 19:54 2013
Picon

Re: [PATCH] libspeex: support ZygoAudio (quality 10mode)

Hi,

> What about other qualities?

Doesn't decode correctly and I don't know how to fix them
(if it's possible).

Regards
Michael Niedermayer | 23 Mar 15:45 2013
Picon
Picon

Re: [PATCH] libspeex: support ZygoAudio (quality 10 mode)

On Wed, Jan 16, 2013 at 07:32:54PM +0100, Piotr Bandurski wrote:
> Hi,
> 
> Attached patch allows decoding of ZygoAudio saved with "quality 10" mode
> (ticket 1873)

applied

thanks

[...]

--

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Gmane