Lines Matching defs:frame
319 * Common function to parse AC-3 or E-AC-3 frame header
386 * Set stereo downmixing coefficients based on frame header info.
637 block of the frame. */
1483 * Decode a single AC-3 frame.
1485 static int ac3_decode_frame(AVCodecContext *avctx, AVFrame *frame,
1532 * with the contents of the AC-3 frame so that the noise is identical across
1533 * decodes given the same AC-3 frame data, for use with non-linear edititing software. */
1549 av_log(avctx, AV_LOG_ERROR, "frame sync error\n");
1558 av_log(avctx, AV_LOG_ERROR, "invalid frame size\n");
1561 /* skip frame if CRC is ok. otherwise use error concealment. */
1565 "unsupported substream %d: skipping frame\n",
1570 av_log(avctx, AV_LOG_ERROR, "invalid frame type\n");
1581 /* check that reported frame size fits in input buffer */
1583 av_log(avctx, AV_LOG_ERROR, "incomplete frame\n");
1589 av_log(avctx, AV_LOG_ERROR, "frame CRC mismatch\n");
1598 av_log(avctx, AV_LOG_WARNING, "Ignoring dependent frame without independent frame.\n");
1675 /* keep last block for error concealment in next frame */
1679 /* check if there is dependent frame */
1698 av_log(avctx, AV_LOG_WARNING, "Ignoring non-compatible dependent frame.\n");
1711 frame->decode_error_flags = err ? FF_DECODE_ERROR_INVALID_BITSTREAM : 0;
1713 /* if frame is ok, set audio parameters */
1777 frame->nb_samples = s->num_blocks * AC3_BLOCK_SIZE;
1778 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
1783 av_assert0(ch>=AV_NUM_DATA_POINTERS || frame->extended_data[ch] == frame->data[ch]);
1784 memcpy((SHORTFLOAT *)frame->extended_data[ch],
1815 if ((ret = ff_side_data_update_matrix_encoding(frame, matrix_encoding)) < 0)
1819 if ((downmix_info = av_downmix_info_update_side_data(frame))) {