Mageia Bugzilla – Attachment 12506 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 dvd crash
mplayer-fix-dvd-crash.patch (text/plain), 553 bytes, created by
Philippe Didier
on 2021-03-25 01:38:16 CET
(
hide
)
Description:
prevent dvd crash
Filename:
MIME Type:
Creator:
Philippe Didier
Created:
2021-03-25 01:38:16 CET
Size:
553 bytes
patch
obsolete
>Index: libmpcodecs/vd_ffmpeg.c >=================================================================== >--- libmpcodecs/vd_ffmpeg.c (Revision 29857) >+++ libmpcodecs/vd_ffmpeg.c (Arbeitskopie) >@@ -118,7 +118,10 @@ > // to set/get/query special features/parameters > static int control(sh_video_t *sh, int cmd, void *arg, ...){ > vd_ffmpeg_ctx *ctx = sh->context; >- AVCodecContext *avctx = ctx->avctx; >+ AVCodecContext *avctx; >+ >+ if (!ctx) return CONTROL_UNKNOWN; >+ avctx = ctx->avctx; > switch(cmd){ > case VDCTRL_QUERY_FORMAT: > {
Index: libmpcodecs/vd_ffmpeg.c =================================================================== --- libmpcodecs/vd_ffmpeg.c (Revision 29857) +++ libmpcodecs/vd_ffmpeg.c (Arbeitskopie) @@ -118,7 +118,10 @@ // to set/get/query special features/parameters static int control(sh_video_t *sh, int cmd, void *arg, ...){ vd_ffmpeg_ctx *ctx = sh->context; - AVCodecContext *avctx = ctx->avctx; + AVCodecContext *avctx; + + if (!ctx) return CONTROL_UNKNOWN; + avctx = ctx->avctx; switch(cmd){ case VDCTRL_QUERY_FORMAT: {
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