* utils.
*/
+/* needed for mkstemp() */
+#define _XOPEN_SOURCE 500
+
#include "libavutil/integer.h"
#include "libavutil/crc.h"
#include "avcodec.h"
#include "opt.h"
#include "imgconvert.h"
#include "audioconvert.h"
+#include <stdlib.h>
#include <stdarg.h>
#include <limits.h>
#include <float.h>
}
s->internal_buffer_count++;
+ pic->reordered_opaque= s->reordered_opaque;
+
if(s->debug&FF_DEBUG_BUFFERS)
av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p, %d buffers used\n", pic, s->internal_buffer_count);
flags= AV_OPT_FLAG_SUBTITLE_PARAM;
av_opt_set_defaults2(s, flags, flags);
- s->rc_eq= av_strdup("tex^qComp");
s->time_base= (AVRational){0,1};
s->get_buffer= avcodec_default_get_buffer;
s->release_buffer= avcodec_default_release_buffer;
avctx->codec->close(avctx);
avcodec_default_free_buffers(avctx);
av_freep(&avctx->priv_data);
- av_freep(&avctx->rc_eq);
avctx->codec = NULL;
entangled_thread_counter--;
return 0;
/* for PCM codecs, compute bitrate directly */
switch(enc->codec_id) {
+ case CODEC_ID_PCM_F64BE:
+ case CODEC_ID_PCM_F64LE:
+ bitrate = enc->sample_rate * enc->channels * 64;
+ break;
case CODEC_ID_PCM_S32LE:
case CODEC_ID_PCM_S32BE:
case CODEC_ID_PCM_U32LE:
case CODEC_ID_PCM_U32BE:
case CODEC_ID_PCM_F32BE:
+ case CODEC_ID_PCM_F32LE:
bitrate = enc->sample_rate * enc->channels * 32;
break;
case CODEC_ID_PCM_S24LE:
case CODEC_ID_PCM_U32BE:
case CODEC_ID_PCM_U32LE:
case CODEC_ID_PCM_F32BE:
+ case CODEC_ID_PCM_F32LE:
return 32;
+ case CODEC_ID_PCM_F64BE:
+ case CODEC_ID_PCM_F64LE:
+ return 64;
default:
return 0;
}
case SAMPLE_FMT_S32:
case SAMPLE_FMT_FLT:
return 32;
+ case SAMPLE_FMT_DBL:
+ return 64;
default:
return 0;
}
else
return 0;
}
+
+void av_log_missing_feature(void *avc, const char *feature, int want_sample)
+{
+ av_log(avc, AV_LOG_WARNING, "%s not implemented. Update your FFmpeg "
+ "version to the newest one from SVN. If the problem still "
+ "occurs, it means that your file has a feature which has not "
+ "been implemented.", feature);
+ if(want_sample)
+ av_log(avc, AV_LOG_WARNING, " If you want to help, upload a sample "
+ "of this file to ftp://upload.mplayerhq.hu/MPlayer/incoming/ "
+ "and contact the FFmpeg-devel mailing list.");
+ av_log(avc, AV_LOG_WARNING, "\n");
+}