• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/

Lines Matching refs:sample

709                "sample aspect ratio already set to %d:%d, ignoring 'pasp' atom (%d:%d)\n",
1375 st->codec->bits_per_coded_sample = avio_rb16(pb); /* sample size */
1392 avio_rb32(pb); /* bytes per sample */
1566 // force sample rate for qcelp when not stored in mov
1576 /* force sample rate for amr, stsd in 3gp does not store sample rate */
1881 av_log(c->fc, AV_LOG_ERROR, "Invalid sample field size %d\n", field_size);
2164 av_log(mov->fc, AV_LOG_WARNING, "STSZ sample size %d invalid (too large), ignoring\n", sc->stsz_sample_size);
2168 av_log(mov->fc, AV_LOG_WARNING, "STSZ sample size %d invalid (too small), ignoring\n", sc->stsz_sample_size);
2175 av_log(mov->fc, AV_LOG_ERROR, "wrong sample count\n");
2212 av_dlog(mov->fc, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", "
2700 //sample aspect ratio is new width/height divided by old width/height
2811 * 2) in the first movie fragment, there is only one sample without composition time offset.
2836 av_dlog(c->fc, "first sample flags 0x%x\n", first_sample_flags);
2861 av_dlog(c->fc, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", "
3086 { MKTAG('c','t','t','s'), mov_read_ctts }, /* composition time to sample */
3116 { MKTAG('s','t','s','d'), mov_read_stsd }, /* sample description */
3117 { MKTAG('s','t','s','s'), mov_read_stss }, /* sync sample */
3118 { MKTAG('s','t','s','z'), mov_read_stsz }, /* sample size */
3120 { MKTAG('s','t','z','2'), mov_read_stsz }, /* compact sample size */
3353 AVIndexEntry *sample = &st->index_entries[i];
3359 if (end < sample->timestamp) {
3364 if (avio_seek(sc->pb, sample->pos, SEEK_SET) != sample->pos) {
3371 if (len > sample->size-2)
3397 avpriv_new_chapter(s, i, st->time_base, sample->timestamp, end, title);
3438 * No sample with tmcd track can be found with a QT timecode at the moment,
3663 AVIndexEntry *sample = NULL;
3672 av_dlog(s, "stream %d, sample %d, dts %"PRId64"\n", i, msc->current_sample, dts);
3673 if (!sample || (!s->pb->seekable && current_sample->pos < sample->pos) ||
3676 ((FFABS(best_dts - dts) <= AV_TIME_BASE && current_sample->pos < sample->pos) ||
3678 sample = current_sample;
3684 return sample;
3691 AVIndexEntry *sample;
3696 sample = mov_find_next_sample(s, &st);
3697 if (!sample) {
3710 /* must be done just before reading, to avoid infinite loop on sample */
3714 sample->pos = FFMIN(sample->pos, mov->next_root_atom);
3715 sample->size = FFMIN(sample->size, (mov->next_root_atom - sample->pos));
3719 if (avio_seek(sc->pb, sample->pos, SEEK_SET) != sample->pos) {
3721 sc->ffindex, sample->pos);
3724 ret = av_get_packet(sc->pb, pkt, sample->size);
3751 pkt->dts = sample->timestamp;
3771 pkt->flags |= sample->flags & AVINDEX_KEYFRAME ? AV_PKT_FLAG_KEY : 0;
3772 pkt->pos = sample->pos;
3781 int sample, time_sample;
3784 sample = av_index_search_timestamp(st, timestamp, flags);
3785 av_dlog(s, "stream %d, timestamp %"PRId64", sample %d\n", st->index, timestamp, sample);
3786 if (sample < 0 && st->nb_index_entries && timestamp < st->index_entries[0].timestamp)
3787 sample = 0;
3788 if (sample < 0) /* not sure what to do */
3790 sc->current_sample = sample;
3791 av_dlog(s, "stream %d, found sample %d\n", st->index, sc->current_sample);
3805 return sample;
3812 int sample;
3819 sample = mov_seek_stream(s, st, sample_time, flags);
3820 if (sample < 0)
3821 return sample;
3823 /* adjust seek timestamp to found sample timestamp */
3824 seek_timestamp = st->index_entries[sample].timestamp;