[SCM] ffms2/master: Use python3-markdown instead of pandoc

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Mon Jul 13 16:29:52 UTC 2015


The following commit has been merged in the master branch:
commit 13aea44dd60e845c8a1a232018377be8070bfa8c
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Mon Jul 13 18:27:07 2015 +0200

    Use python3-markdown instead of pandoc

diff --git a/debian/control b/debian/control
index e755f6d..6e4deba 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
 Source: ffms2
 Priority: optional
 Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers at lists.alioth.debian.org>
-Uploaders: Reinhard Tartler <siretart at tauware.de>,
+Uploaders:
+ Reinhard Tartler <siretart at tauware.de>,
  Rico Tzschichholz <ricotz at ubuntu.com>,
  Sebastian Ramacher <sramacher at debian.org>
 Build-Depends: debhelper (>= 9),
@@ -13,7 +14,7 @@ Build-Depends: debhelper (>= 9),
  libswscale-dev (>= 4:0.8~),
  libavresample-dev,
  zlib1g-dev,
- pandoc
+ python3-markdown
 Section: libs
 Standards-Version: 3.9.6
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-multimedia/ffms2.git;a=summary
diff --git a/debian/patches/fix-links.patch b/debian/patches/fix-links.patch
new file mode 100644
index 0000000..e39f026
--- /dev/null
+++ b/debian/patches/fix-links.patch
@@ -0,0 +1,468 @@
+Description: Fix links
+Author: Sebastian Ramacher <sramacher at debian.org>
+Last-Update: 2015-07-13
+
+--- ffms2-2.21.orig/doc/ffms2-api.md
++++ ffms2-2.21/doc/ffms2-api.md
+@@ -184,7 +184,7 @@ How many characters you want to allocate
+ 
+ ### FFMS_Init - initializes the library
+ 
+-[Init]: #ffms_init---initializes-the-library
++[Init]: #ffms_init-initializes-the-library
+ ```c++
+ void FFMS_Init(int Unused, int UseUTF8Paths);
+ ```
+@@ -209,7 +209,7 @@ Prior to API version 2.14.0.0 this funct
+ 
+ ### FFMS_GetLogLevel - gets FFmpeg message level
+ 
+-[GetLogLevel]: #ffms_getloglevel---gets-ffmpeg-message-level
++[GetLogLevel]: #ffms_getloglevel-gets-ffmpeg-message-level
+ ```c++
+ int FFMS_GetLogLevel();
+ ```
+@@ -219,7 +219,7 @@ Alternatively, just copy the relevant co
+ 
+ ### FFMS_SetLogLevel - sets FFmpeg message level
+ 
+-[SetLogLevel]: #ffms_setloglevel---sets-ffmpeg-message-level
++[SetLogLevel]: #ffms_setloglevel-sets-ffmpeg-message-level
+ ```c++
+ void FFMS_SetLogLevel(int Level);
+ ```
+@@ -227,7 +227,7 @@ Sets FFmpeg's logging/message level; see
+ 
+ ### FFMS_CreateVideoSource - creates a video source object
+ 
+-[CreateVideoSource]: #ffms_createvideosource---creates-a-video-source-object
++[CreateVideoSource]: #ffms_createvideosource-creates-a-video-source-object
+ ```c++
+ FFMS_VideoSource *FFMS_CreateVideoSource(const char *SourceFile, int Track, FFMS_Index *Index,
+     int Threads, int SeekMode, FFMS_ErrorInfo *ErrorInfo);
+@@ -268,7 +268,7 @@ Returns `NULL` and sets `ErrorMsg` on fa
+ 
+ ### FFMS_CreateAudioSource - creates an audio source object
+ 
+-[CreateAudioSource]: #ffms_createaudiosource---creates-an-audio-source-object
++[CreateAudioSource]: #ffms_createaudiosource-creates-an-audio-source-object
+ ```c++
+ FFMS_AudioSource *FFMS_CreateAudioSource(const char *SourceFile, int Track, FFMS_Index *Index, int DelayMode,
+     FFMS_ErrorInfo *ErrorInfo);
+@@ -291,8 +291,8 @@ Possible arguments are:
+ 
+ ### FFMS_DestroyVideoSource, FFMS_DestroyAudioSource - deallocates a video or audio source object
+ 
+-[DestroyVideoSource]: #ffms_destroyvideosource-ffms_destroyaudiosource---deallocates-a-video-or-audio-source-object
+-[DestroyAudioSource]: #ffms_destroyvideosource-ffms_destroyaudiosource---deallocates-a-video-or-audio-source-object
++[DestroyVideoSource]: #ffms_destroyvideosource-ffms_destroyaudiosource-deallocates-a-video-or-audio-source-object
++[DestroyAudioSource]: #ffms_destroyvideosource-ffms_destroyaudiosource-deallocates-a-video-or-audio-source-object
+ ```c++
+ void FFMS_DestroyVideoSource(FFMS_VideoSource *V);
+ void FFMS_DestroyAudioSource(FFMS_AudioSource *A);
+@@ -301,7 +301,7 @@ Deallocates the given `FFMS_VideoSource`
+ 
+ ### FFMS_GetVideoProperties - retrieves video properties
+ 
+-[GetVideoProperties]: #ffms_getvideoproperties---retrieves-video-properties
++[GetVideoProperties]: #ffms_getvideoproperties-retrieves-video-properties
+ ```c++
+ const FFMS_VideoProperties *FFMS_GetVideoProperties(FFMS_VideoSource *V);
+ ```
+@@ -310,7 +310,7 @@ Returns a pointer to said struct.
+ 
+ ### FFMS_GetAudioProperties - retrieves audio properties
+ 
+-[GetAudioProperties]: #ffms_getaudioproperties---retrieves-audio-properties
++[GetAudioProperties]: #ffms_getaudioproperties-retrieves-audio-properties
+ ```c++
+ const FFMS_AudioProperties *FFMS_GetAudioProperties(FFMS_AudioSource *A);
+ ```
+@@ -319,7 +319,7 @@ See [FFMS_AudioProperties][AudioProperti
+ 
+ ### FFMS_GetFrame - retrieves a given video frame
+ 
+-[GetFrame]: #ffms_getframe---retrieves-a-given-video-frame
++[GetFrame]: #ffms_getframe-retrieves-a-given-video-frame
+ ```c++
+ const FFMS_Frame *FFMS_GetFrame(FFMS_VideoSource *V, int n, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -347,7 +347,7 @@ Note that while `FFMS_GetFrame` tends to
+ 
+ ### FFMS_GetFrameByTime - retrieves a video frame at a given timestamp
+ 
+-[GetFrameByTime]: #ffms_getframebytime---retrieves-a-video-frame-at-a-given-timestamp
++[GetFrameByTime]: #ffms_getframebytime-retrieves-a-video-frame-at-a-given-timestamp
+ ```c++
+ const FFMS_Frame *FFMS_GetFrameByTime(FFMS_VideoSource *V, double Time, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -356,7 +356,7 @@ This function exists for the people who
+ 
+ ### FFMS_GetAudio - decodes a number of audio samples
+ 
+-[GetAudio]: #ffms_getaudio---decodes-a-number-of-audio-samples
++[GetAudio]: #ffms_getaudio-decodes-a-number-of-audio-samples
+ ```c++
+ int FFMS_GetAudio(FFMS_AudioSource *A, void *Buf, int64_t Start, int64_t Count, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -388,7 +388,7 @@ Returns non-0 and sets `ErrorMsg` on fai
+ 
+ ### FFMS_SetOutputFormatV2 - sets the output format for video frames
+ 
+-[SetOutputFormatV2]: #ffms_setoutputformatv2---sets-the-output-format-for-video-frames
++[SetOutputFormatV2]: #ffms_setoutputformatv2-sets-the-output-format-for-video-frames
+ ```c++
+ int FFMS_SetOutputFormatV2(FFMS_VideoSource *V, int *TargetFormats, int Width, int Height, int Resizer,
+     FFMS_ErrorInfo *ErrorInfo);
+@@ -437,7 +437,7 @@ Returns non-0 and sets `ErrorMsg` on fai
+ 
+ ### FFMS_ResetOutputFormatV - resets the video output format
+ 
+-[ResetOutputFormatV]: #ffms_resetoutputformatv---resets-the-video-output-format
++[ResetOutputFormatV]: #ffms_resetoutputformatv-resets-the-video-output-format
+ ```c++
+ void FFMS_ResetOutputFormatV(FFMS_VideoSource *V);
+ ```
+@@ -447,7 +447,7 @@ If you call it, you'd better call [FFMS_
+ 
+ ### FFMS_SetInputFormatV - override the source format for video frames
+ 
+-[SetInputFormatV]: #ffms_setinputformatv---override-the-source-format-for-video-frames
++[SetInputFormatV]: #ffms_setinputformatv-override-the-source-format-for-video-frames
+ ```c++
+ int FFMS_SetInputFormatV(FFMS_VideoSource *V, int ColorSpace, int ColorRange, int PixelFormat,
+     FFMS_ErrorInfo *ErrorInfo);
+@@ -484,7 +484,7 @@ Returns non-0 and sets `ErrorMsg` on fai
+ 
+ ### FFMS_ResetInputFormatV - resets the video input format
+ 
+-[ResetInputFormatV]: #ffms_resetinputformatv---resets-the-video-input-format
++[ResetInputFormatV]: #ffms_resetinputformatv-resets-the-video-input-format
+ ```c++
+ void FFMS_ResetInputFormatV(FFMS_VideoSource *V);
+ ```
+@@ -492,7 +492,7 @@ Resets the input format for the given `F
+ 
+ ### FFMS_DestroyIndex - deallocates an index object
+ 
+-[DestroyIndex]: #ffms_destroyindex---deallocates-an-index-object
++[DestroyIndex]: #ffms_destroyindex-deallocates-an-index-object
+ ```c++
+ void FFMS_DestroyFFMS_Index(FFMS_Index *Index);
+ ```
+@@ -500,7 +500,7 @@ Deallocates the given `FFMS_Index` objec
+ 
+ ### FFMS_GetSourceType - gets which source module was used to open the given index
+ 
+-[GetSourceType]: #ffms_getsourcetype---gets-which-source-module-was-used-to-open-the-given-index
++[GetSourceType]: #ffms_getsourcetype-gets-which-source-module-was-used-to-open-the-given-index
+ ```c++
+ int FFMS_GetSourceType(FFMS_Index *Index);
+ ```
+@@ -508,7 +508,7 @@ Returns `FFMS_SOURCE_LAVF`.
+ 
+ ### FFMS_GetSourceTypeI - gets which source module was used to open the given indexer
+ 
+-[GetSourceTypeI]: #ffms_getsourcetypei---gets-which-source-module-was-used-to-open-the-given-indexer
++[GetSourceTypeI]: #ffms_getsourcetypei-gets-which-source-module-was-used-to-open-the-given-indexer
+ ```c++
+ int FFMS_GetSourceTypeI(FFMS_Index *Indexer);
+ ```
+@@ -516,7 +516,7 @@ Does the same thing as [FFMS_GetSourceTy
+ 
+ ### FFMS_GetErrorHandling - gets which error handling mode was used when creating the given index
+ 
+-[GetErrorHandling]: #ffms_geterrorhandling---gets-which-error-handling-mode-was-used-when-creating-the-given-index
++[GetErrorHandling]: #ffms_geterrorhandling-gets-which-error-handling-mode-was-used-when-creating-the-given-index
+ ```c++
+ int FFMS_GetErrorHandling(FFMS_Index *Index);
+ ```
+@@ -524,7 +524,7 @@ Returns the value of the ErrorHandling p
+ 
+ ### FFMS_GetFirstTrackOfType - gets the track number of the first track of a given type
+ 
+-[GetFirstTrackOfType]: #ffms_getfirsttrackoftype---gets-the-track-number-of-the-first-track-of-a-given-type
++[GetFirstTrackOfType]: #ffms_getfirsttrackoftype-gets-the-track-number-of-the-first-track-of-a-given-type
+ ```c++
+ int FFMS_GetFirstTrackOfType(FFMS_Index *Index, int TrackType, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -548,7 +548,7 @@ Returns a negative integer and sets Erro
+ 
+ ### FFMS_GetFirstIndexedTrackOfType - gets the track number of the first track of a given type
+ 
+-[GetFirstIndexedTrackOfType]: #ffms_getfirstindexedtrackoftype---gets-the-track-number-of-the-first-track-of-a-given-type
++[GetFirstIndexedTrackOfType]: #ffms_getfirstindexedtrackoftype-gets-the-track-number-of-the-first-track-of-a-given-type
+ ```c++
+ int FFMS_GetFirstIndexedTrackOfType(FFMS_Index *Index, int TrackType, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -556,7 +556,7 @@ Does the exact same thing as [FFMS_GetFi
+ 
+ ### FFMS_GetNumTracks - gets the number of tracks in a given index
+ 
+-[GetNumTracks]: #ffms_getnumtracks---gets-the-number-of-tracks-in-a-given-index
++[GetNumTracks]: #ffms_getnumtracks-gets-the-number-of-tracks-in-a-given-index
+ ```c++
+ int FFMS_GetNumTracks(FFMS_Index *Index);
+ ```
+@@ -564,7 +564,7 @@ Returns the total number of tracks in th
+ 
+ ### FFMS_GetNumTracksI - gets the number of tracks in a given indexer
+ 
+-[GetNumTracksI]: #ffms_getnumtracksi---gets-the-number-of-tracks-in-a-given-indexer
++[GetNumTracksI]: #ffms_getnumtracksi-gets-the-number-of-tracks-in-a-given-indexer
+ ```c++
+ int FFMS_GetNumTracksI(FFMS_Indexer *Indexer);
+ ```
+@@ -573,7 +573,7 @@ In other words, does the same thing as [
+ 
+ ### FFMS_GetTrackType - gets the track type of a given track
+ 
+-[GetTrackType]: #ffms_gettracktype---gets-the-track-type-of-a-given-track
++[GetTrackType]: #ffms_gettracktype-gets-the-track-type-of-a-given-track
+ ```c++
+ int FFMS_GetTrackType(FFMS_Track *T);
+ ```
+@@ -581,7 +581,7 @@ Returns an integer representing the [FFM
+ 
+ ### FFMS_GetTrackTypeI - gets the track type of a given track
+ 
+-[GetTrackTypeI]: #ffms_gettracktypei---gets-the-track-type-of-a-given-track
++[GetTrackTypeI]: #ffms_gettracktypei-gets-the-track-type-of-a-given-track
+ ```c++
+ int FFMS_GetTrackTypeI(FFMS_Indexer *Indexer, int Track);
+ ```
+@@ -592,7 +592,7 @@ Note that specifying an invalid track nu
+ 
+ ### FFMS_GetCodecNameI - gets the name of the codec used for a given track
+ 
+-[GetCodecNameI]: #ffms_getcodecnamei---gets-the-name-of-the-codec-used-for-a-given-track
++[GetCodecNameI]: #ffms_getcodecnamei-gets-the-name-of-the-codec-used-for-a-given-track
+ ```c++
+ const char *FFMS_GetCodecNameI(FFMS_Indexer *Indexer, int Track);
+ ```
+@@ -602,7 +602,7 @@ Note that specifying an invalid track nu
+ 
+ ### FFMS_GetFormatNameI - gets the name of the container format used in the given indexer
+ 
+-[GetFormatNameI]: #ffms_getformatnamei---gets-the-name-of-the-container-format-used-in-the-given-indexer
++[GetFormatNameI]: #ffms_getformatnamei-gets-the-name-of-the-container-format-used-in-the-given-indexer
+ ```c++
+ const char *FFMS_GetFormatNameI(FFMS_Indexer *Indexer);
+ ```
+@@ -610,7 +610,7 @@ Returns the human-readable name ("long n
+ 
+ ### FFMS_GetNumFrames - gets the number of frames in a given track
+ 
+-[GetNumFrames]: #ffms_getnumframes---gets-the-number-of-frames-in-a-given-track
++[GetNumFrames]: #ffms_getnumframes-gets-the-number-of-frames-in-a-given-track
+ ```c++
+ int FFMS_GetNumFrames(FFMS_Track *T);
+ ```
+@@ -620,7 +620,7 @@ A return value of 0 indicates the track
+ 
+ ### FFMS_GetFrameInfo - gets information about a given frame
+ 
+-[GetFrameInfo]: #ffms_getframeinfo---gets-information-about-a-given-frame
++[GetFrameInfo]: #ffms_getframeinfo-gets-information-about-a-given-frame
+ ```c++
+ const FFMS_FrameInfo *FFMS_GetFrameInfo(FFMS_Track *T, int Frame);
+ ```
+@@ -646,7 +646,7 @@ Returns `NULL` and sets `ErrorMsg` on fa
+ 
+ ### FFMS_GetTrackFromIndex - retrieves track info from an index
+ 
+-[GetTrackFromIndex]: #ffms_gettrackfromindex---retrieves-track-info-from-an-index
++[GetTrackFromIndex]: #ffms_gettrackfromindex-retrieves-track-info-from-an-index
+ ```c+++
+ FFMS_Track *FFMS_GetTrackFromIndex(FFMS_Index *Index, int Track);
+ ```
+@@ -673,8 +673,8 @@ Note that requesting indexing informatio
+ 
+ ### FFMS_GetTrackFromVideo, FFMS_GetTrackFromAudio - retrieves track info from audio or video source
+ 
+-[GetTrackFromVideo]: #ffms_gettrackfromvideo-ffms_gettrackfromaudio---retrieves-track-info-from-audio-or-video-source
+-[GetTrackFromAudio]: #ffms_gettrackfromvideo-ffms_gettrackfromaudio---retrieves-track-info-from-audio-or-video-source
++[GetTrackFromVideo]: #ffms_gettrackfromvideo-ffms_gettrackfromaudio-retrieves-track-info-from-audio-or-video-source
++[GetTrackFromAudio]: #ffms_gettrackfromvideo-ffms_gettrackfromaudio-retrieves-track-info-from-audio-or-video-source
+ ```c++
+ FFMS_Track *FFMS_GetTrackFromVideo(FFMS_VideoSource *V);
+ FFMS_Track *FFMS_GetTrackFromAudio(FFMS_AudioSource *A);
+@@ -685,7 +685,7 @@ Note that the returned `FFMS_Track` obje
+ 
+ ### FFMS_GetTimeBase - retrieves the time base for the given track
+ 
+-[GetTimeBase]: #ffms_gettimebase---retrieves-the-time-base-for-the-given-track
++[GetTimeBase]: #ffms_gettimebase-retrieves-the-time-base-for-the-given-track
+ ```c++
+ const FFMS_TrackTimeBase *FFMS_GetTimeBase(FFMS_Track *T);
+ ```
+@@ -694,7 +694,7 @@ Note that it is only meaningful for vide
+ 
+ ### FFMS_WriteTimecodes - writes timecodes for the given track to disk
+ 
+-[WriteTimecodes]: #ffms_writetimecodes---writes-timecodes-for-the-given-track-to-disk
++[WriteTimecodes]: #ffms_writetimecodes-writes-timecodes-for-the-given-track-to-disk
+ ```c++
+ int FFMS_WriteTimecodes(FFMS_Track *T, const char *TimecodeFile, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -720,14 +720,14 @@ Returns non-0 and sets `ErrorMsg` on fai
+ 
+ ### FFMS_DefaultAudioFilename - default callback for audio filename generation
+ 
+-[DefaultAudioFilename]: #ffms_defaultaudiofilename---default-callback-for-audio-filename-generation
++[DefaultAudioFilename]: #ffms_defaultaudiofilename-default-callback-for-audio-filename-generation
+ This function generates a default audio filename for use when dumping audio tracks to disk as Wave64 files during indexing.
+ Its only use in the public API is as a default callback for `FFMS_MakeIndex` and `FFMS_DoIndexing`; you should never call it directly.
+ See `FFMS_MakeIndex` for a description of its arguments.
+ 
+ ### FFMS_CreateIndexer - creates an indexer object for the given file
+ 
+-[CreateIndexer]: #ffms_createindexer---creates-an-indexer-object-for-the-given-file
++[CreateIndexer]: #ffms_createindexer-creates-an-indexer-object-for-the-given-file
+ ```c++
+ FFMS_Indexer *FFMS_CreateIndexer(const char *SourceFile, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -741,7 +741,7 @@ Returns `NULL` and sets `ErrorMsg` on fa
+ 
+ ### FFMS_CreateIndexerWithDemuxer - creates an indexer object for the given file, using the given source module
+ 
+-[CreateIndexerWithDemuxer]: #ffms_createindexerwithdemuxer---creates-an-indexer-object-for-the-given-file-using-the-given-source-module
++[CreateIndexerWithDemuxer]: #ffms_createindexerwithdemuxer-creates-an-indexer-object-for-the-given-file-using-the-given-source-module
+ ```c++
+ FFMS_Indexer *FFMS_CreateIndexerWithDemuxer(const char *SourceFile, int Demuxer, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -758,7 +758,7 @@ Returns `NULL` and sets `ErrorMsg` on fa
+ 
+ ### FFMS_DoIndexing2 - indexes the file represented by an indexer object
+ 
+-[DoIndexing2]: #ffms_doindexing2---indexes-the-file-represented-by-an-indexer-object
++[DoIndexing2]: #ffms_doindexing2-indexes-the-file-represented-by-an-indexer-object
+ ```c++
+ FFMS_Index *FFMS_DoIndexing2(FFMS_Indexer *Indexer, int ErrorHandling, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -788,7 +788,7 @@ Returns `NULL` and sets `ErrorMsg` on fa
+ 
+ ### FFMS_TrackIndexSettings - enable or disable indexing of a track
+ 
+-[TrackIndexSettings]: #ffms_trackindexsettings---enable-or-disable-indexing-of-a-track
++[TrackIndexSettings]: #ffms_trackindexsettings-enable-or-disable-indexing-of-a-track
+ ```c++
+ void FFMS_TrackIndexSettings(FFMS_Indexer *Indexer, int Track, int Index, int Dump);
+ ```
+@@ -816,7 +816,7 @@ By default, no tracks are dumped.
+ 
+ ### FFMS_TrackTypeIndexSettings - enable or disable indexing of a tracks of a given type
+ 
+-[TrackTypeIndexSettings]: #ffms_tracktypeindexsettings---enable-or-disable-indexing-of-a-tracks-of-a-given-type
++[TrackTypeIndexSettings]: #ffms_tracktypeindexsettings-enable-or-disable-indexing-of-a-tracks-of-a-given-type
+ ```c++
+ void FFMS_TrackTypeIndexSettings(FFMS_Indexer *Indexer, int TrackType, int Index, int Dump);
+ ```
+@@ -825,7 +825,7 @@ Like [FFMS_TrackIndexSettings][TrackInde
+ 
+ ### FFMS_SetAudioNameCallback - choose the filename for audio track dumping
+ 
+-[SetAudioNameCallback]: #ffms_setaudionamecallback---choose-the-filename-for-audio-track-dumping
++[SetAudioNameCallback]: #ffms_setaudionamecallback-choose-the-filename-for-audio-track-dumping
+ ```c++
+ void FFMS_SetAudioNameCallback(FFMS_Indexer *Indexer, TAudioNameCallback ANC, void *ANCPrivate);
+ ```
+@@ -859,7 +859,7 @@ Most of the parameters may seem pointles
+ 
+ ### FFMS_SetProgressCallback - set callback function for indexing progress updates
+ 
+-[SetProgressCallback]: #ffms_setprogresscallback---set-callback-function-for-indexing-progress-updates
++[SetProgressCallback]: #ffms_setprogresscallback-set-callback-function-for-indexing-progress-updates
+ ```c++
+ void FFMS_SetProgressCallback(FFMS_Indexer *Indexer, TIndexCallback IC, void *ICPrivate);
+ ```
+@@ -879,7 +879,7 @@ Return 0 from the callback function to c
+ 
+ ### FFMS_CancelIndexing - destroys the given indexer object
+ 
+-[CancelIndexing]: #ffms_cancelindexing---destroys-the-given-indexer-object
++[CancelIndexing]: #ffms_cancelindexing-destroys-the-given-indexer-object
+ ```c++
+ void FFMS_CancelIndexing(FFMS_Indexer *Indexer);
+ ```
+@@ -887,7 +887,7 @@ Destroys the given `FFMS_Indexer` object
+ 
+ ### FFMS_ReadIndex - reads an index file from disk
+ 
+-[ReadIndex]: #ffms_readindex---reads-an-index-file-from-disk
++[ReadIndex]: #ffms_readindex-reads-an-index-file-from-disk
+ ```c++
+ FFMS_Index *FFMS_ReadIndex(const char *IndexFile, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -896,7 +896,7 @@ Returns the `FFMS_Index` on success; ret
+ 
+ ### FFMS_IndexBelongsToFile - check if a given index belongs to a given file
+ 
+-[IndexBelongsToFile]: #ffms_indexbelongstofile---check-if-a-given-index-belongs-to-a-given-file
++[IndexBelongsToFile]: #ffms_indexbelongstofile-check-if-a-given-index-belongs-to-a-given-file
+ ```c++
+ int FFMS_IndexBelongsToFile(FFMS_Index *Index, const char *SourceFile, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -917,7 +917,7 @@ Returns non-0 and sets `ErrorMsg` otherw
+ 
+ ### FFMS_WriteIndex - writes an index object to disk
+ 
+-[WriteIndex]: #ffms_writeindex---writes-an-index-object-to-disk
++[WriteIndex]: #ffms_writeindex-writes-an-index-object-to-disk
+ ```c++
+ int FFMS_WriteIndex(const char *IndexFile, FFMS_Index *TrackIndices, FFMS_ErrorInfo *ErrorInfo);
+ ```
+@@ -926,7 +926,7 @@ Returns 0 on success; returns non-0 and
+ 
+ ### FFMS_GetPixFmt - gets a colorspace identifier from a colorspace name
+ 
+-[GetPixFmt]: #ffms_getpixfmt---gets-a-colorspace-identifier-from-a-colorspace-name
++[GetPixFmt]: #ffms_getpixfmt-gets-a-colorspace-identifier-from-a-colorspace-name
+ ```c++
+ int FFMS_GetPixFmt(const char *Name);
+ ```
+@@ -948,7 +948,7 @@ Returns the integer constant representin
+ 
+ ### FFMS_GetPresentSources - checks what source modules the library was compiled with
+ 
+-[GetPresentSources]: #ffms_getpresentsources---checks-what-source-modules-the-library-was-compiled-with
++[GetPresentSources]: #ffms_getpresentsources-checks-what-source-modules-the-library-was-compiled-with
+ ```c++
+ int FFMS_GetPresentSources();
+ ```
+@@ -956,7 +956,7 @@ Checks which source modules the library
+ 
+ ### FFMS_GetEnabledSources - checks what source modules are actually available for use
+ 
+-[GetEnabledSources]: #ffms_getenabledsources---checks-what-source-modules-are-actually-available-for-use
++[GetEnabledSources]: #ffms_getenabledsources-checks-what-source-modules-are-actually-available-for-use
+ ```c++
+ int FFMS_GetEnabledSources();
+ ```
+@@ -964,7 +964,7 @@ Does the same thing as [FFMS_GetPresentS
+ 
+ ### FFMS_GetVersion - returns FFMS_VERSION constant
+ 
+-[GetVersion]: #ffms_getversion---returns-ffms_version-constant
++[GetVersion]: #ffms_getversion-returns-ffms_version-constant
+ ```c++
+ int FFMS_GetVersion();
+ ```
+@@ -972,7 +972,7 @@ Returns the FFMS_VERSION constant as def
+ 
+ ### FFMS_MakeIndex - indexes a given source file [DEPRECATED]
+ 
+-[MakeIndex]: #ffms_makeindex---indexes-a-given-source-file
++[MakeIndex]: #ffms_makeindex-indexes-a-given-source-file
+ ```c++
+ FFMS_Index *FFMS_MakeIndex(const char *SourceFile, int IndexMask, int DumpMask,
+     TAudioNameCallback ANC, void *ANCPrivate, int ErrorHandling,
+@@ -1071,7 +1071,7 @@ Returns `NULL` and sets `ErrorMsg` on fa
+ 
+ ### FFMS_DoIndexing - indexes the file represented by an indexer object [DEPRECATED]
+ 
+-[DoIndexing]: #ffms_doindexing---indexes-the-file-represented-by-an-indexer-object
++[DoIndexing]: #ffms_doindexing-indexes-the-file-represented-by-an-indexer-object
+ ```c++
+ FFMS_Index *FFMS_DoIndexing(FFMS_Indexer *Indexer, int IndexMask, int DumpMask,
+   TAudioNameCallback ANC, void *ANCPrivate, int ErrorHandling, TIndexCallback IC, void *ICPrivate,
diff --git a/debian/patches/python-markdown.patch b/debian/patches/python-markdown.patch
new file mode 100644
index 0000000..789e4c8
--- /dev/null
+++ b/debian/patches/python-markdown.patch
@@ -0,0 +1,18 @@
+Description: use four-spaces sublist indent as required by the standard
+Author: Dmitry Shachnev <mitya57 at debian.org>
+Forwarded: https://github.com/FFMS/ffms2/pull/222
+Last-Update: 2015-07-13
+
+--- a/doc/ffms2-api.md
++++ b/doc/ffms2-api.md
+@@ -18,8 +18,8 @@
+ FFMS2 has the following dependencies:
+ 
+  - **[Libav][libav]** or **[FFmpeg][ffmpeg]** (mpv has [a decent overview of the differences](https://github.com/mpv-player/mpv/wiki/FFmpeg-versus-Libav) if you have no idea which one to pick).
+-  - At least 0.8 for libav and 0.9 for FFmpeg.
+-  - Further recommended configuration options: `--disable-debug --disable-muxers --disable-encoders --disable-filters --disable-hwaccels --disable-network --disable-devices --enable-runtime-cpudetect` (runtime cpudetect in particular is a good idea if you are planning on distributing the library; not disabling debug results in a gigantic dll).
++    - At least 0.8 for libav and 0.9 for FFmpeg.
++    - Further recommended configuration options: `--disable-debug --disable-muxers --disable-encoders --disable-filters --disable-hwaccels --disable-network --disable-devices --enable-runtime-cpudetect` (runtime cpudetect in particular is a good idea if you are planning on distributing the library; not disabling debug results in a gigantic dll).
+  - **[zlib][zlib]**
+ 
+ Compiling the library on non-Windows is trivial; the usual `./configure && make && make install` will suffice if FFmpeg and zlib are installed to the default locations.
diff --git a/debian/patches/series b/debian/patches/series
index 63c767a..77d75db 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,3 @@
 symbol-visibility.patch
+python-markdown.patch
+fix-links.patch
diff --git a/debian/rules b/debian/rules
index ca4aaf4..f5619dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,8 @@ override_dh_auto_configure:
 
 override_dh_auto_build:
 	dh_auto_build
-	pandoc doc/ffms2-api.md -t html -s -o doc/ffms2-api.html
+	python3 -m markdown doc/ffms2-api.md \
+		-x fenced_code -x headerid >doc/ffms2-api.html
 
 override_dh_installchangelogs:
 	dh_installchangelogs doc/ffms2-changelog.md

-- 
ffms2 packaging



More information about the pkg-multimedia-commits mailing list