Skip to content

Commit eb29b44

Browse files
author
Clement Champetier
committed
Video/AudioEncoder: removed set of output AVPacket stream_index
Override in avcodec encoded method.
1 parent d5a155a commit eb29b44

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/AvTranscoder/encoder/AudioEncoder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ bool AudioEncoder::encode(const AVFrame* decodedData, AVPacket& encodedData)
118118
{
119119
// Be sure that data of AVPacket is NULL so that the encoder will allocate it
120120
encodedData.data = NULL;
121-
encodedData.stream_index = 0;
122121

123122
AVCodecContext& avCodecContext = _codec.getAVCodecContext();
124123
#if LIBAVCODEC_VERSION_MAJOR > 53

src/AvTranscoder/encoder/VideoEncoder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ bool VideoEncoder::encode(const AVFrame* decodedData, AVPacket& encodedData)
131131
{
132132
// Be sure that data of AVPacket is NULL so that the encoder will allocate it
133133
encodedData.data = NULL;
134-
encodedData.stream_index = 0;
135134

136135
AVCodecContext& avCodecContext = _codec.getAVCodecContext();
137136
#if LIBAVCODEC_VERSION_MAJOR > 53

0 commit comments

Comments
 (0)