Fix error return value
The function returns an enum AVCodecID, not a bool.
This commit is contained in:
parent
40866ddc10
commit
230b8274b9
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ sc_demuxer_recv_codec_id(struct sc_demuxer *demuxer) {
|
|||
uint8_t data[4];
|
||||
ssize_t r = net_recv_all(demuxer->socket, data, 4);
|
||||
if (r < 4) {
|
||||
return false;
|
||||
return AV_CODEC_ID_NONE;
|
||||
}
|
||||
|
||||
#define SC_CODEC_ID_H264 UINT32_C(0x68323634) // "h264" in ASCII
|
||||
|
|
Loading…
Reference in a new issue