Lines 179-185
Link Here
|
179 |
static_cast<FFMPEGCodec *>(ctx->opaque)->GetEncodedFrame()->RTPCallBack(data, size, numMB); |
179 |
static_cast<FFMPEGCodec *>(ctx->opaque)->GetEncodedFrame()->RTPCallBack(data, size, numMB); |
180 |
} |
180 |
} |
181 |
|
181 |
|
182 |
bool FFMPEGCodec::InitEncoder(CodecID codecId) |
182 |
bool FFMPEGCodec::InitEncoder(AVCodecID codecId) |
183 |
{ |
183 |
{ |
184 |
PTRACE(5, m_prefix, "Opening encoder"); |
184 |
PTRACE(5, m_prefix, "Opening encoder"); |
185 |
|
185 |
|
Lines 214-220
Link Here
|
214 |
} |
214 |
} |
215 |
|
215 |
|
216 |
|
216 |
|
217 |
bool FFMPEGCodec::InitDecoder(CodecID codecId) |
217 |
bool FFMPEGCodec::InitDecoder(AVCodecID codecId) |
218 |
{ |
218 |
{ |
219 |
if ((m_codec = avcodec_find_decoder(codecId)) == NULL) { |
219 |
if ((m_codec = avcodec_find_decoder(codecId)) == NULL) { |
220 |
PTRACE(1, m_prefix, "Codec not found for decoder"); |
220 |
PTRACE(1, m_prefix, "Codec not found for decoder"); |