summaryrefslogtreecommitdiff
path: root/src/img_encoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/img_encoder.cc')
-rw-r--r--src/img_encoder.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/img_encoder.cc b/src/img_encoder.cc
index 7aca367..c5cc58b 100644
--- a/src/img_encoder.cc
+++ b/src/img_encoder.cc
@@ -39,6 +39,9 @@
/*
* $Log$
+ * Revision 1.9 2005/05/26 12:48:36 deva
+ * *** empty log message ***
+ *
* Revision 1.8 2005/05/07 10:25:34 deva
*
* Removed ffmpeg code from img_encoder and corrected decoding errors in mov_encoder
@@ -71,10 +74,14 @@ void ImgEncoder::encode(Frame *dvframe,
char *filename,
int quality)
{
+ // Append suffix..
+ char fname[256];
+ sprintf(fname, "%s.jpg", filename);
+
unsigned char rgb[720*576*4];
getRGB(dvframe, rgb);
- writeJPEGFile(filename, quality, (JSAMPLE*)rgb, 720, 576);
+ writeJPEGFile(fname, quality, (JSAMPLE*)rgb, 720, 576);
}
///////////////////////////////////////////////////////////////////////////////////////////