[FFmpeg-devel] [PATCH] CrystalHD: Use mp4toannexb bitstream filter.

Michael Niedermayer michaelni at gmx.at
Sun Jun 12 20:53:32 CEST 2011


On Sat, Jun 11, 2011 at 11:07:21AM -0700, Philip Langdale wrote:
[...]
> @@ -831,6 +834,17 @@ static int decode(AVCodecContext *avctx, void *data, int *data_size, AVPacket *a
>          int32_t tx_free = (int32_t)DtsTxFreeSize(dev);
>  
>          if (priv->parser) {
> +            if (priv->bsfc) {
> +                /*
> +                 * The filter API will always realloc and replace the input
> +                 * buffer, whether you want it to or not.
> +                 */
> +                av_bitstream_filter_filter(priv->bsfc, avctx, NULL,
> +                                           &avpkt->data, &avpkt->size,
> +                                           avpkt->data, avpkt->size, 0);
> +                len = avpkt->size;

> +            }
> +
>              uint8_t *pout;

mixing declarations and statements breaks gcc 2.95. Not sure if this
has much relevance today still though

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110612/a9532c04/attachment.asc>


More information about the ffmpeg-devel mailing list