I tried to make a patch for this one but got stuck on img_convert. From
http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2007-May/008477.html it
seems the replacement is sws_scale but the interface seems pretty
different and the conversion more in depth than i'm prepared to do on a
flyby investigation of a bug
The patch so far is attatched.
diff -ur smilutils-0.3.2+cvs20070731/apps/ffmpeg2raw/ffmpeg2raw.c smilutils-0.3.2+cvs20070731.new/apps/ffmpeg2raw/ffmpeg2raw.c
--- smilutils-0.3.2+cvs20070731/apps/ffmpeg2raw/ffmpeg2raw.c 2007-07-29 00:24:21.000000000 +0000
+++ smilutils-0.3.2+cvs20070731.new/apps/ffmpeg2raw/ffmpeg2raw.c 2009-02-28 02:37:52.000000000 +0000
@@ -23,8 +23,8 @@
#include <sys/wait.h>
#include <string.h>
-#include <ffmpeg/common.h>
-#include <ffmpeg/avformat.h>
+#include <libavutil/common.h>
+#include <libavformat/avformat.h>
#include "dvutils.h"
@@ -243,8 +243,9 @@
//double video_pts = (double)pkt.pts * this->context->pts_num / this->context->pts_den;
//if ( video_pts > 0 )
//fprintf( stderr, "video_pts = %f\n", video_pts );
-
- img_convert((AVPicture *)output, PIX_FMT_RGB24, (AVPicture *)frame,
+
+ #FIXME: this function no longer exists it looks like swsscale is the replacement
+ img_convert((AVPicture *)output, PIX_FMT_RGB24, (AVPicture *)frame,
venc->pix_fmt, venc->width, venc->height);
first = 0;
@@ -266,7 +267,10 @@
while ( len > 0 )
{
- len1 = avcodec_decode_audio(&astream->codec, audio_buf, &data_size, ptr, len );
+ #modified to use avcodec_decode_audio2 based on the information at
+ # http://www.mail-archive.com/dvbcut-u...@lists.sourceforge.net/msg00932.html
+ data_size=AVCODEC_MAX_AUDIO_FRAME_SIZE;
+ len1 = avcodec_decode_audio(&astream->codec, audio_buf, &data_size, ptr, len );
len -= len1;
ptr += len1;
if ( data_size > 0 )
Only in smilutils-0.3.2+cvs20070731.new/apps/ffmpeg2raw/: Makefile.in