|
@@ -473,7 +473,7 @@ static void close_stream(AVFormatContext *oc, OutputStream *ost)
|
|
|
/**************************************************************/
|
|
|
/* media file output */
|
|
|
|
|
|
-BOOL FFmpegWriter::InitWmvWriter(char* filename, int width, int height, int colorbit, int nfps,
|
|
|
+BOOL FFmpegWmvWriter::InitWmvWriter(char* filename, int width, int height, int colorbit, int nfps,
|
|
|
int nSanplePsec, int nchannels, int nBitPerSample, int nmaxspacing, int nquality, int nOutBitRate, int iAudioType)
|
|
|
{
|
|
|
int ret;
|
|
@@ -562,7 +562,7 @@ BOOL FFmpegWriter::InitWmvWriter(char* filename, int width, int height, int colo
|
|
|
|
|
|
|
|
|
|
|
|
-BOOL FFmpegWriter::StartWrite() {
|
|
|
+BOOL FFmpegWmvWriter::StartWrite() {
|
|
|
AVDictionary *opt = NULL;
|
|
|
|
|
|
/* Write the stream header, if any. */
|
|
@@ -577,7 +577,7 @@ BOOL FFmpegWriter::StartWrite() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-BOOL FFmpegWriter::End() {
|
|
|
+BOOL FFmpegWmvWriter::End() {
|
|
|
/* Write the trailer, if any. The trailer must be written before you
|
|
|
* close the CodecContexts open when you wrote the header; otherwise
|
|
|
* av_write_trailer() may try to use memory that was freed on
|
|
@@ -593,7 +593,7 @@ BOOL FFmpegWriter::End() {
|
|
|
return TRUE;
|
|
|
}
|
|
|
|
|
|
-void FFmpegWriter::Close(){
|
|
|
+void FFmpegWmvWriter::Close(){
|
|
|
/* Close each codec. */
|
|
|
if (have_video)
|
|
|
close_stream(oc, video_st);
|
|
@@ -616,7 +616,7 @@ void FFmpegWriter::Close(){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-BOOL FFmpegWriter::ReceiveAudioData(BYTE* pData, DWORD len) {
|
|
|
+BOOL FFmpegWmvWriter::ReceiveAudioData(BYTE* pData, DWORD len) {
|
|
|
if (oc == NULL || audio_st == NULL || !have_audio){
|
|
|
return FALSE;
|
|
|
}
|
|
@@ -629,7 +629,7 @@ BOOL FFmpegWriter::ReceiveAudioData(BYTE* pData, DWORD len) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-BOOL FFmpegWriter::ReceiveVideoData(BYTE* pData, DWORD len) {
|
|
|
+BOOL FFmpegWmvWriter::ReceiveVideoData(BYTE* pData, DWORD len) {
|
|
|
if (oc == NULL || video_st == NULL || !have_video){
|
|
|
return FALSE;
|
|
|
}
|