Hi,
I've been building ffmpeg as a component library in earlier builders of Chromium and it had worked out all right without any issues (last version ok for m66). After I upgraded to m68 and built ffmpeg as libffmpeg.so under Linux, playing any mp4 video leads to an immediate crash. The stack backtrace is like this:
#0 0x00007ffff7ad24ec in fill_buffer ()
at ../../third_party/ffmpeg/libavformat/aviobuf.c:599
#1 0x00007ffff7ad2dba in avio_read ()
at ../../third_party/ffmpeg/libavformat/aviobuf.c:678
#2 0x00007ffff7ad6c6b in av_probe_input_buffer2 ()
at ../../third_party/ffmpeg/libavformat/format.c:270
#3 0x00007ffff7ac4831 in avformat_open_input ()
at ../../third_party/ffmpeg/libavformat/utils.c:425
#4 0x00005555581fdab7 in OpenContext ()
at ../../media/filters/ffmpeg_glue.cc:110
#5 0x00005555581fd40e in Run () at ../../base/callback.h:96
#6 ReturnAsParamAdapter<bool> ()
at ../../base/post_task_and_reply_with_result_internal.h:20
#7 0x00005555580aeeeb in Invoke<void (*)(base::OnceCallback<base::File ()>, base::File *), base::OnceCallback<base::File ()>, base::File *> ()
at ../../base/bind_internal.h:402
#8 MakeItSo<void (*)(base::OnceCallback<base::File ()>, base::File *), base::OnceCallback<base::File ()>, base::File *> () at ../../base/bind_internal.h:547
#9 RunImpl<void (*)(base::OnceCallback<base::File ()>, base::File *), std::__1::tuple<base::OnceCallback<base::File ()>, base::File *>, 0, 1> ()
at ../../base/bind_internal.h:621
#10 RunOnce () at ../../base/bind_internal.h:589
#11 0x0000555559a1691a in Run () at ../../base/callback.h:96
The ffmpeg does work all right as a component in debug build. The crash only happens for release build. If anyone has ideas who changes lead to this behavior under M68, it would be highly appreciated.
Thanks a lot in advance.
Rest Regards,
Shanfeng Cheng