99 }
else if (num >= den) {
116 for (j=2; j<14; j+= 1+(j>2))
117 while (q.
den / q.
num < min_precission && q.
num % j == 0)
119 while (q.
den / q.
num < min_precission && q.
den < (1<<24))
126 const char *format,
const char *filename)
139 av_log(s,
AV_LOG_ERROR,
"Requested output format '%s' is not a suitable output format\n", format);
178 #if FF_API_ALLOC_OUTPUT_CONTEXT
184 return ret < 0 ?
NULL : avctx;
193 unsigned int tag = 0;
279 "(%d/%d) and encoder layer (%d/%d)\n",
301 char tagbuf[32], cortag[32];
305 "Tag %s/0x%08x incompatible with output codec id '%d' (%s)\n",
317 "Codec for stream %d does not use global headers "
318 "but container format requires global headers\n", i);
392 if (ret >= 0 && s->
pb && s->
pb->
error < 0)
410 av_dlog(s,
"compute_pkt_fields2: pts:%s dts:%s cur_dts:%s b:%d size:%d st:%d\n",
451 "Application provided invalid, non monotonically increasing dts to muxer in stream %d: %s >= %s\n",
461 av_dlog(s,
"av_write_frame: pts2:%s dts2:%s\n",
509 if (ret >= 0 && s->
pb && s->
pb->
error < 0)
522 if (ret >= 0 && s->
pb && s->
pb->
error < 0)
530 #define CHUNK_START 0x1000
562 int64_t syncto =
av_rescale(pkt->
dts + syncoffset, 1, max)*max - syncoffset;
575 && ((chunked && !((*next_point)->pkt.flags&
CHUNK_START))
576 || !compare(s, &(*next_point)->pkt, pkt)))
577 next_point = &(*next_point)->
next;
589 this_pktl->
next = *next_point;
592 *next_point = this_pktl;
610 comp= (ts>ts2) - (ts<ts2);
622 int stream_count = 0, noninterleaved_count = 0;
623 int64_t delta_dts_max = 0;
636 ++noninterleaved_count;
652 delta_dts_max=
FFMAX(delta_dts_max, delta_dts);
655 if (s->
nb_streams == stream_count+noninterleaved_count &&
661 if (stream_count && flush) {
699 #if FF_API_INTERLEAVE_PACKET
739 av_dlog(s,
"av_interleaved_write_frame size:%d dts:%s pts:%s\n",
747 av_dlog(s,
"av_interleaved_write_frame FLUSH\n");
814 int64_t *dts, int64_t *wall)