Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37765771
en ru br
ALT Linux repos
S:2.6.0-alt0.5
5.0: 2.5.0-alt0.2
4.1: 2.5.0-alt0.2
4.0: 2.5.0-alt0.1
3.0: 2.3.1-alt1

Group :: Sound
RPM: moc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: ffmpeg4.patch
Download


Index: moc-2.6-alpha3/decoder_plugins/ffmpeg/ffmpeg.c
===================================================================
--- moc-2.6-alpha3.orig/decoder_plugins/ffmpeg/ffmpeg.c
+++ moc-2.6-alpha3/decoder_plugins/ffmpeg/ffmpeg.c
@@ -697,7 +697,7 @@ static void *ffmpeg_open_internal (struc
 	 * FFmpeg/LibAV in use.  For some versions this will be caught in
 	 * *_find_stream_info() above and misreported as an unfound codec
 	 * parameters error. */
-	if (data->codec->capabilities & CODEC_CAP_EXPERIMENTAL) {
+	if (data->codec->capabilities & AV_CODEC_CAP_EXPERIMENTAL) {
 		decoder_error (&data->error, ERROR_FATAL, 0,
 				"The codec is experimental and may damage MOC: %s",
 				data->codec->name);
@@ -705,8 +705,8 @@ static void *ffmpeg_open_internal (struc
 	}
 
 	set_downmixing (data);
-	if (data->codec->capabilities & CODEC_CAP_TRUNCATED)
-		data->enc->flags |= CODEC_FLAG_TRUNCATED;
+	if (data->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
+		data->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
 
 	if (avcodec_open2 (data->enc, data->codec, NULL) < 0)
 	{
@@ -725,7 +725,7 @@ static void *ffmpeg_open_internal (struc
 
 	data->sample_width = sfmt_Bps (data->fmt);
 
-	if (data->codec->capabilities & CODEC_CAP_DELAY)
+	if (data->codec->capabilities & AV_CODEC_CAP_DELAY)
 		data->delay = true;
 	data->seek_broken = is_seek_broken (data);
 	data->timing_broken = is_timing_broken (data->ic);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin