Ticket #5809: patchparserpadding.diff

File patchparserpadding.diff, 995 bytes (added by Carl Eugen Hoyos, 10 years ago)
  • libavcodec/avcodec.h

    diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
    index e2dad5d..668fa8a 100644
    a b AVCodecParserContext *av_parser_init(int codec_id);  
    51465146 * @param poutbuf       set to pointer to parsed buffer or NULL if not yet finished.
    51475147 * @param poutbuf_size  set to size of parsed buffer or zero if not yet finished.
    51485148 * @param buf           input buffer.
    5149  * @param buf_size      input length, to signal EOF, this should be 0 (so that the last frame can be output).
     5149 * @param buf_size      buffer size in bytes without the padding. I.e. the full buffer
     5150                        size is assumed to be buf_size + AV_INPUT_BUFFER_PADDING_SIZE.
     5151                        To signal EOF, this should be 0 (so that the last frame
     5152                        can be output).
    51505153 * @param pts           input presentation timestamp.
    51515154 * @param dts           input decoding timestamp.
    51525155 * @param pos           input byte position in stream.