97 }
else if (num >= den) {
114 for (j=2; j<14; j+= 1+(j>2))
115 while (q.
den / q.
num < min_precission && q.
num % j == 0)
117 while (q.
den / q.
num < min_precission && q.
den < (1<<24))
124 const char *format,
const char *filename)
137 av_log(s,
AV_LOG_ERROR,
"Requested output format '%s' is not a suitable output format\n", format);
176 #if FF_API_ALLOC_OUTPUT_CONTEXT
182 return ret < 0 ? NULL : avctx;
191 unsigned int tag = 0;
281 "(%d/%d) and encoder layer (%d/%d)\n",
304 char tagbuf[32], tagbuf2[32];
308 "Tag %s/0x%08x incompatible with output codec id '%d' (%s)\n",
320 "Codec for stream %d does not use global headers "
321 "but container format requires global headers\n", i);
395 if (ret >= 0 && s->
pb && s->
pb->
error < 0)
420 av_dlog(s,
"compute_pkt_fields2: pts:%s dts:%s cur_dts:%s b:%d size:%d st:%d\n",
461 "Application provided invalid, non monotonically increasing dts to muxer in stream %d: %s >= %s\n",
471 av_dlog(s,
"av_write_frame: pts2:%s dts2:%s\n",
519 if (s->
offset && !offset) {
553 if (ret >= 0 && s->
pb && s->
pb->
error < 0)
566 if (ret >= 0 && s->
pb && s->
pb->
error < 0)
574 #define CHUNK_START 0x1000
587 #if FF_API_DESTRUCT_PACKET
588 pkt->destruct = NULL;
610 int64_t syncto =
av_rescale(pkt->
dts + syncoffset, 1, max)*max - syncoffset;
623 && ((chunked && !((*next_point)->pkt.flags&
CHUNK_START))
624 || !compare(s, &(*next_point)->pkt, pkt)))
625 next_point = &(*next_point)->
next;
637 this_pktl->
next = *next_point;
640 *next_point = this_pktl;
659 comp= (ts>ts2) - (ts<ts2);
671 int stream_count = 0, noninterleaved_count = 0;
672 int64_t delta_dts_max = 0;
685 ++noninterleaved_count;
701 delta_dts_max=
FFMAX(delta_dts_max, delta_dts);
704 if (s->
nb_streams == stream_count+noninterleaved_count &&
710 if (stream_count && flush) {
762 av_dlog(s,
"av_interleaved_write_frame size:%d dts:%s pts:%s\n",
770 av_dlog(s,
"av_interleaved_write_frame FLUSH\n");
837 int64_t *dts, int64_t *wall)