Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 554436 Details for
Bug 670620
app-emulation/vice-3.1 fails to build against media-video/ffmpeg-4.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to build against ffmpeg 4
ffmeg-4.patch (text/plain), 1.67 KB, created by
Adam Jones
on 2018-11-07 16:56:42 UTC
(
hide
)
Description:
Patch to build against ffmpeg 4
Filename:
MIME Type:
Creator:
Adam Jones
Created:
2018-11-07 16:56:42 UTC
Size:
1.67 KB
patch
obsolete
>--- a/src/gfxoutputdrv/ffmpegdrv.c.orig 2017-03-30 20:32:40 UTC >+++ b/src/gfxoutputdrv/ffmpegdrv.c >@@ -360,7 +360,7 @@ static int ffmpegdrv_open_audio(AVFormatContext *oc, A > } > > audio_is_open = 1; >- if (c->codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE) { >+ if (c->codec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE) { > audio_inbuf_samples = 10000; > } else { > audio_inbuf_samples = c->frame_size; >@@ -454,7 +454,7 @@ static int ffmpegmovie_init_audio(int speed, int chann > > /* Some formats want stream headers to be separate. */ > if (ffmpegdrv_oc->oformat->flags & AVFMT_GLOBALHEADER) >- c->flags |= CODEC_FLAG_GLOBAL_HEADER; >+ c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; > > /* create resampler context */ > #ifndef HAVE_FFMPEG_AVRESAMPLE >@@ -787,7 +787,7 @@ static void ffmpegdrv_init_video(screenshot_t *screens > > /* Some formats want stream headers to be separate. */ > if (ffmpegdrv_oc->oformat->flags & AVFMT_GLOBALHEADER) { >- c->flags |= CODEC_FLAG_GLOBAL_HEADER; >+ c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; > } > > if (audio_init_done) { >@@ -967,6 +967,7 @@ static int ffmpegdrv_record(screenshot_t *screenshot) > > video_st.frame->pts = video_st.next_pts++; > >+#ifdef AVFMT_RAWPICTURE > if (ffmpegdrv_oc->oformat->flags & AVFMT_RAWPICTURE) { > AVPacket pkt; > VICE_P_AV_INIT_PACKET(&pkt); >@@ -977,7 +978,9 @@ static int ffmpegdrv_record(screenshot_t *screenshot) > pkt.pts = pkt.dts = video_st.frame->pts; > > ret = VICE_P_AV_INTERLEAVED_WRITE_FRAME(ffmpegdrv_oc, &pkt); >- } else { >+ } else >+#endif >+ { > AVPacket pkt = { 0 }; > int got_packet; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 670620
: 554436 |
554438