Mageia Bugzilla – Attachment 12511 Details for
Bug 28504
mplayer can't read video files with dav1d codec; this bugs contains the fix.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
prevent seg fault
mplayer-1.2-spdifenc-segfault.patch (text/plain), 577 bytes, created by
Philippe Didier
on 2021-03-25 01:46:15 CET
(
hide
)
Description:
prevent seg fault
Filename:
MIME Type:
Creator:
Philippe Didier
Created:
2021-03-25 01:46:15 CET
Size:
577 bytes
patch
obsolete
>diff -up MPlayer-1.2/libmpcodecs/ad_spdif.c.pts MPlayer-1.2/libmpcodecs/ad_spdif.c >--- MPlayer-1.2/libmpcodecs/ad_spdif.c.pts 2015-06-10 14:24:28.000000000 +0200 >+++ MPlayer-1.2/libmpcodecs/ad_spdif.c 2015-12-31 21:18:38.635968903 +0100 >@@ -211,6 +211,11 @@ static int init(sh_audio_t *sh) > default: > break; > } >+ >+ // a call to avformat_write_header() is needed to prevent segfaults, >+ // but this should replace the earlier call to lavf_ctx->oformat->write_header() >+ // somehow... >+ avformat_write_header(lavf_ctx, NULL); > > return 1; >
diff -up MPlayer-1.2/libmpcodecs/ad_spdif.c.pts MPlayer-1.2/libmpcodecs/ad_spdif.c --- MPlayer-1.2/libmpcodecs/ad_spdif.c.pts 2015-06-10 14:24:28.000000000 +0200 +++ MPlayer-1.2/libmpcodecs/ad_spdif.c 2015-12-31 21:18:38.635968903 +0100 @@ -211,6 +211,11 @@ static int init(sh_audio_t *sh) default: break; } + + // a call to avformat_write_header() is needed to prevent segfaults, + // but this should replace the earlier call to lavf_ctx->oformat->write_header() + // somehow... + avformat_write_header(lavf_ctx, NULL); return 1;
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28504
:
12499
|
12500
|
12501
|
12502
|
12503
|
12504
|
12505
|
12506
|
12507
|
12508
|
12509
|
12510
| 12511 |
12512
|
12513
|
12514
|
12515
|
12518
|
12536
|
12541