mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avformat/g722: Inline constants
Forgotten in 5f0e161dd6
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b93ed5c28e
commit
8768188581
@ -19,7 +19,6 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libavutil/avassert.h"
|
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
#include "demux.h"
|
#include "demux.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
@ -38,10 +37,7 @@ static int g722_read_header(AVFormatContext *s)
|
|||||||
st->codecpar->sample_rate = 16000;
|
st->codecpar->sample_rate = 16000;
|
||||||
st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
|
st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
|
||||||
|
|
||||||
st->codecpar->bits_per_coded_sample =
|
st->codecpar->bits_per_coded_sample = 4;
|
||||||
av_get_bits_per_sample(st->codecpar->codec_id);
|
|
||||||
|
|
||||||
av_assert0(st->codecpar->bits_per_coded_sample > 0);
|
|
||||||
|
|
||||||
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
|
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user