Opened 8 months ago
Last modified 5 months ago
#10907 new defect
Assertion pkt failed at fftools/ffmpeg_dec.c:710 - crash when transcoding av1 (libdav1d) -> h264 (libx264)
Reported by: | azhelev | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | |
Cc: | azhelev | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
I am trying to transcode av1 (libdav1d) to h264 (libx264) video. ffmpeg terminated with SIGABRT and dumped core
Assertion pkt failed at fftools/ffmpeg_dec.c:710
How to reproduce:
$ ffmpeg -i 8c15d2570816542b10dc84df63d06cbf -vf scale=-2:234 -preset ultrafast 8c15d2570816542b10dc84df63d06cbf_avc.mp4 ffmpeg version N-114162-g2129d66a66 built on 14.03.2024
report file, gdb and valgrind output attached.
Attachments (4)
Change History (8)
by , 8 months ago
Attachment: | ffmpeg-20240314-163848-gdb.log added |
---|
by , 8 months ago
Attachment: | ffmpeg-20240314-163848.log.xz.partaa added |
---|
ffmpeg report log (part a)
by , 8 months ago
Attachment: | ffmpeg-20240314-163848.log.xz.partab added |
---|
ffmpeg report log (part b)
comment:1 by , 8 months ago
To reconstruct the ffmpeg report log archive
cat ffmpeg-20240314-163848.log.xz.parta* > ffmpeg-20240314-163848.log.xz
comment:2 by , 8 months ago
Can you share the input file?
Also, please test the following patch:
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c index 597944d88d..703e14eece 100644 --- a/libavcodec/libdav1d.c +++ b/libavcodec/libdav1d.c @@ -375,7 +375,7 @@ static int libdav1d_receive_frame_internal(AVCodecContext *c, Dav1dPicture *p) } else { av_packet_free(&pkt); if (res >= 0) - return AVERROR(EAGAIN); + return 1; } }
comment:3 by , 8 months ago
I have uploaded the file on streams.videolan.org/upload/ with this ticket number as reference.
The filename is
8c15d2570816542b10dc84df63d06cbf_crash_when_transcoding_to_h264.mp4
I also tried the patch but got the same crash.
Note:
See TracTickets
for help on using tickets.
gdb output