[FFmpeg-devel] [PATCH 2/4] decode: add a method for attaching lavc-internal data to frames

Michael Niedermayer michael at niedermayer.cc
Sat Nov 11 03:42:24 EET 2017


On Fri, Nov 10, 2017 at 05:03:15PM +0100, Timo Rothenpieler wrote:
> From: Anton Khirnov <anton at khirnov.net>
> 
> Use the AVFrame.private_ref field.
> 
> This new struct will be useful in the following commits.
> 
> Merges Libav commit 359a8a3e2d1194b52b6c386f94fd0929567dfb67.
> ---
>  libavcodec/decode.c          | 51 ++++++++++++++++++++++++++++++++++++++++++--
>  libavcodec/decode.h          | 11 ++++++++++
>  libavcodec/wrapped_avframe.c |  7 ++++++
>  3 files changed, 67 insertions(+), 2 deletions(-)

this causes assertion failures
ill send you the input file

[wmavoice @ 0x116bdbe0] Superframe encodes > 480 samples (3919), not allowed
==19367==    at 0x11B304C: VALGRIND_PRINTF_BACKTRACE (valgrind.h:4550)
==19367==    by 0x11B3ABC: av_log_default_callback (log.c:355)
==19367==    by 0x11B3C5B: av_vlog (log.c:383)
==19367==    by 0x11B3C1B: av_log (log.c:375)
==19367==    by 0xCFC25F: synth_superframe (wmavoice.c:1731)
==19367==    by 0xCFCE23: wmavoice_decode_packet (wmavoice.c:1950)
==19367==    by 0x86BD5B: decode_simple_internal (decode.c:397)
==19367==    by 0x86C9E2: decode_simple_receive_frame (decode.c:593)
==19367==    by 0x86CAAD: decode_receive_frame_internal (decode.c:611)
==19367==    by 0x86CF8E: avcodec_receive_frame (decode.c:725)
==19367==    by 0x4335A4: decode (ffmpeg.c:2238)
==19367==    by 0x433801: decode_audio (ffmpeg.c:2288)
==19367==    by 0x434DC2: process_input_packet (ffmpeg.c:2612)
==19367==    by 0x43BF5A: process_input (ffmpeg.c:4422)
==19367==    by 0x43C503: transcode_step (ffmpeg.c:4542)
==19367==    by 0x43C67F: transcode (ffmpeg.c:4596)
==19367==    by 0x43CE50: main (ffmpeg.c:4802)
Error while decoding stream #0:0: Invalid data found when processing input
==19367==    at 0x11B304C: VALGRIND_PRINTF_BACKTRACE (valgrind.h:4550)
==19367==    by 0x11B3ABC: av_log_default_callback (log.c:355)
==19367==    by 0x11B3C5B: av_vlog (log.c:383)
==19367==    by 0x11B3C1B: av_log (log.c:375)
==19367==    by 0x435169: process_input_packet (ffmpeg.c:2660)
==19367==    by 0x43BF5A: process_input (ffmpeg.c:4422)
==19367==    by 0x43C503: transcode_step (ffmpeg.c:4542)
==19367==    by 0x43C67F: transcode (ffmpeg.c:4596)
==19367==    by 0x43CE50: main (ffmpeg.c:4802)
[wmavoice @ 0x116bdbe0] Invalid frame type VLC code, skipping
==19367==    at 0x11B304C: VALGRIND_PRINTF_BACKTRACE (valgrind.h:4550)
==19367==    by 0x11B3ABC: av_log_default_callback (log.c:355)
==19367==    by 0x11B3C5B: av_vlog (log.c:383)
==19367==    by 0x11B3C1B: av_log (log.c:375)
==19367==    by 0xCFB3E4: synth_frame (wmavoice.c:1486)
==19367==    by 0xCFC7FD: synth_superframe (wmavoice.c:1781)
==19367==    by 0xCFCCE7: wmavoice_decode_packet (wmavoice.c:1927)
==19367==    by 0x86BD5B: decode_simple_internal (decode.c:397)
==19367==    by 0x86C9E2: decode_simple_receive_frame (decode.c:593)
==19367==    by 0x86CAAD: decode_receive_frame_internal (decode.c:611)
==19367==    by 0x86CD25: avcodec_send_packet (decode.c:673)
==19367==    by 0x43357A: decode (ffmpeg.c:2231)
==19367==    by 0x433801: decode_audio (ffmpeg.c:2288)
==19367==    by 0x434DC2: process_input_packet (ffmpeg.c:2612)
==19367==    by 0x43BF5A: process_input (ffmpeg.c:4422)
==19367==    by 0x43C503: transcode_step (ffmpeg.c:4542)
==19367==    by 0x43C67F: transcode (ffmpeg.c:4596)
==19367==    by 0x43CE50: main (ffmpeg.c:4802)
[wmavoice @ 0x116bdbe0] WMAPro-in-WMAVoice is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[wmavoice @ 0x116bdbe0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel at ffmpeg.org)
Error while decoding stream #0:0: Not yet implemented in FFmpeg, patches welcome
==19367==    at 0x11B304C: VALGRIND_PRINTF_BACKTRACE (valgrind.h:4550)
==19367==    by 0x11B3ABC: av_log_default_callback (log.c:355)
==19367==    by 0x11B3C5B: av_vlog (log.c:383)
==19367==    by 0x11B3C1B: av_log (log.c:375)
==19367==    by 0x435169: process_input_packet (ffmpeg.c:2660)
==19367==    by 0x43BF5A: process_input (ffmpeg.c:4422)
==19367==    by 0x43C503: transcode_step (ffmpeg.c:4542)
==19367==    by 0x43C67F: transcode (ffmpeg.c:4596)
==19367==    by 0x43CE50: main (ffmpeg.c:4802)
Assertion !frame->private_ref failed at libavcodec/decode.c:1599
==19367==    at 0x11B304C: VALGRIND_PRINTF_BACKTRACE (valgrind.h:4550)
==19367==    by 0x11B3ABC: av_log_default_callback (log.c:355)
==19367==    by 0x11B3C5B: av_vlog (log.c:383)
==19367==    by 0x11B3C1B: av_log (log.c:375)
==19367==    by 0x86F7AC: ff_attach_decode_data (decode.c:1599)
==19367==    by 0x86FA68: get_buffer_internal (decode.c:1659)
==19367==    by 0x86FAF4: ff_get_buffer (decode.c:1678)
==19367==    by 0xCFC579: synth_superframe (wmavoice.c:1761)
==19367==    by 0xCFCE23: wmavoice_decode_packet (wmavoice.c:1950)
==19367==    by 0x86BD5B: decode_simple_internal (decode.c:397)
==19367==    by 0x86C9E2: decode_simple_receive_frame (decode.c:593)
==19367==    by 0x86CAAD: decode_receive_frame_internal (decode.c:611)
==19367==    by 0x86CD25: avcodec_send_packet (decode.c:673)
==19367==    by 0x43357A: decode (ffmpeg.c:2231)
==19367==    by 0x433801: decode_audio (ffmpeg.c:2288)
==19367==    by 0x434DC2: process_input_packet (ffmpeg.c:2612)
==19367==    by 0x43BF5A: process_input (ffmpeg.c:4422)
==19367==    by 0x43C503: transcode_step (ffmpeg.c:4542)
==19367==    by 0x43C67F: transcode (ffmpeg.c:4596)
==19367==    by 0x43CE50: main (ffmpeg.c:4802)

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

There will always be a question for which you do not know the correct answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171111/50180546/attachment.sig>


More information about the ffmpeg-devel mailing list