Commit 0cbc59ea authored by jehan's avatar jehan

fix compilation issue

parent c404e816
......@@ -430,9 +430,11 @@ static void dec_init(MSFilter *f) {
if (caps & VPX_CODEC_CAP_ERROR_CONCEALMENT) {
flags |= VPX_CODEC_USE_ERROR_CONCEALMENT;
}
#ifdef VPX_CODEC_CAP_FRAME_THREADING
if ((caps & VPX_CODEC_CAP_FRAME_THREADING) && (ms_get_cpu_count() > 1)) {
flags |= VPX_CODEC_USE_FRAME_THREADING;
}
#endif
if ((caps & VPX_CODEC_CAP_POSTPROC) && (ms_get_cpu_count() > 1)) {
flags |= VPX_CODEC_USE_POSTPROC;
}
......
......@@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "vp8rtpfmt.h"
//#define VP8RTPFMT_DEBUG
/*#define VP8RTPFMT_DEBUG*/
#define VP8RTPFMT_OUTPUT_INCOMPLETE_FRAMES
......
......@@ -225,7 +225,7 @@ static void setup_media_streams(MediastreamDatas *args)
ms_filter_call_method(args->read, MS_FILE_PLAYER_OPEN, args->infile);
ms_filter_call_method(args->read, MS_FILTER_SET_SAMPLE_RATE, &args->pt->clock_rate);
ms_filter_call_method_noarg(args->read, MS_FILE_PLAYER_START);
ms_filter_set_notify_callback(args->read, reader_notify_cb, NULL);
ms_filter_add_notify_callback(args->read, reader_notify_cb, NULL,FALSE);
/*force the decoder to output YUV420P */
format = MS_YUV420P;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment