[FFmpeg-trac] #4807(undetermined:new): valgrind report uninitialized memory error muxing HEVC file
FFmpeg
trac at avcodec.org
Wed Aug 26 17:43:22 CEST 2015
#4807: valgrind report uninitialized memory error muxing HEVC file
-------------------------------------+-------------------------------------
Reporter: | Owner:
michel.promonet | Status: new
Type: defect | Component:
Priority: normal | undetermined
Version: 2.7 | Resolution:
Keywords: valgrind, | Blocked By:
hevc, h265, muxing | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by michel.promonet):
I just checked with git revision a16251a6d0401c772bd985f4c611caf97ca5e537
There is less errors, but still somes :
ffmpeg version N-74650-ga16251a Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --enable-static --disable-shared --disable-asm --enable-
debug --disable-optimizations --disable-stripping --disable-doc --disable-
devices --disable-postproc --disable-filters --disable-network --disable-
bsfs --disable-protocols --enable-protocol=file --disable-filters
--enable-pic --disable-iconv --disable-zlib --disable-bzlib --disable-xlib
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 58.100 / 56. 58.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 37.100 / 5. 37.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
[hevc @ 0x5732b50] Unknown HEVC profile: 0
Last message repeated 11 times
Input #0, hevc, from 'video-H265-1':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: hevc, yuv420p(tv), 1280x720, 25 fps, 25 tbr, 1200k
tbn, 25 tbc
[mp4 @ 0x5b15bf0] Codec for stream 0 does not use global headers but
container format requires global headers
Output #0, mp4, to 'toto.mp4':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: hevc ([35][0][0][0] / 0x0023), yuv420p, 1280x720,
q=2-31, 25 fps, 25 tbr, 1200k tbn, 1200k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x5b15bf0] pts has no value
Last message repeated 35 times
==26832== at 0x1095080: VALGRIND_PRINTF_BACKTRACE (valgrind.h:5631)
==26832== by 0x1095BA4: av_log_default_callback (log.c:346)
==26832== by 0x1095D3B: av_vlog (log.c:374)
==26832== by 0x1095CFB: av_log (log.c:366)
==26832== by 0x41B145: term_exit (ffmpeg.c:313)
==26832== by 0x42B036: transcode (ffmpeg.c:4006)
==26832== by 0x42B549: main (ffmpeg.c:4160)
==26832== Conditional jump or move depends on uninitialised value(s)
==26832== at 0x59E4F2: get_ue_golomb_long (intmath.h:62)
==26832== by 0x59EEF4: parse_rps (hevc.c:471)
==26832== by 0x59F2A5: hvcc_parse_sps (hevc.c:562)
==26832== by 0x59F9CC: hvcc_add_nal_unit (hevc.c:783)
==26832== by 0x5A081B: ff_isom_write_hvcc (hevc.c:1135)
==26832== by 0x4D81DB: mov_write_hvcc_tag (movenc.c:1034)
==26832== by 0x4DABCD: mov_write_video_tag (movenc.c:1712)
==26832== by 0x4DB693: mov_write_stsd_tag (movenc.c:1851)
==26832== by 0x4DBDF0: mov_write_stbl_tag (movenc.c:1966)
==26832== by 0x4DCF1A: mov_write_minf_tag (movenc.c:2209)
==26832== by 0x4DD2A5: mov_write_mdia_tag (movenc.c:2263)
==26832== by 0x4DEB76: mov_write_trak_tag (movenc.c:2627)
==26832==
frame= 36 fps=0.0 q=-1.0 Lsize= 273kB time=00:00:01.36
bitrate=1646.3kbits/s
video:272kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.410793%
==26832== at 0x1095080: VALGRIND_PRINTF_BACKTRACE (valgrind.h:5631)
==26832== by 0x1095BA4: av_log_default_callback (log.c:346)
==26832== by 0x1095D3B: av_vlog (log.c:374)
==26832== by 0x1095CFB: av_log (log.c:366)
==26832== by 0x41B145: term_exit (ffmpeg.c:313)
==26832== by 0x41BA10: ffmpeg_cleanup (ffmpeg.c:583)
==26832== by 0x4035C6: exit_program (cmdutils.c:119)
==26832== by 0x42B62B: main (in /data/home/mpr/ffmpeg/ffmpeg_g)
==26832==
==26832== HEAP SUMMARY:
==26832== in use at exit: 40 bytes in 1 blocks
==26832== total heap usage: 1,588 allocs, 1,587 frees, 4,486,574 bytes
allocated
==26832==
==26832== LEAK SUMMARY:
==26832== definitely lost: 0 bytes in 0 blocks
==26832== indirectly lost: 0 bytes in 0 blocks
==26832== possibly lost: 0 bytes in 0 blocks
==26832== still reachable: 40 bytes in 1 blocks
==26832== suppressed: 0 bytes in 0 blocks
==26832== Rerun with --leak-check=full to see details of leaked memory
==26832==
==26832== For counts of detected and suppressed errors, rerun with: -v
==26832== Use --track-origins=yes to see where uninitialised values come
from
==26832== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 0 from 0)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4807#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list