FFMpeg Codec Compilation Patch
First, see the following bug report: BugReport2005x08x05x210647
The problem is that the
has changed type from
struct AVCodecContext *
, for a good reason I'm not going into here. This of course breaks compilation of Motion. This patch updates Motion to compile with both previous versions of FFMpeg and the current CVS version.
Description of Patch
The patch contains:
- Updates to ffmpeg.c to handle the new CVS version of FFMpeg.
- Cosmetic code changes.
Now, the cosmetic code changes shouldn't affect any functionality, but given that it's late here and I need sleep, I wouldn't be surprised if I broke something.
Installation of Patch
Standard patch procedure:
- Change to the Motion source directory.
- Issue the command
zcat motion-3.2.2_snap10-ff_v2.patch.gz | patch -p1
- Compile and enjoy (hopefully)!
Note that the patch should be applied to a clean snap10, but I don't think any other current patch affects ffmpeg.c anyway...
Change History of Patch
- Version 1 (6-Aug-2005):
- Fixes compilation against FFMpeg with libavformat build version 4629 and higher.
- Version 2 (6-Aug-2005):
- Less cluttering with #ifdefs in the code.
Thanks once again Per.
I have integrated the patch into my sources.
It will be included in 3.2.2_snap11
- 06 Aug 2005
Good! I just uploaded a second version of the patch with less #ifdefs in the code (i.e., less cluttering). Instead of having an #ifdef every time
is used, I created a macro that expands to
as a pointer depending on libavformat build.
I also found and fixed some more cosmetic/code standard "errors".
- 06 Aug 2005
V2 integrated and will be in 3.2.2_snap11
- 07 Aug 2005