Skip to content

Commit 28de5c0

Browse files
uknunknownFlole998
authored andcommitted
Fix - Audio transcoding not working #1663
src/transcoding/transcode/helpers.c : pktbuf_len(self->input_gh)) will be 0 (empty) so will return error -11 (AVERROR(EAGAIN) for audio streams.
1 parent 05c3170 commit 28de5c0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/transcoding/transcode/helpers.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,15 @@ tvh_context_helper_find(struct TVHContextHelpers *list, const AVCodec *codec)
8181

8282
/* decoders ================================================================= */
8383

84-
/* shared by H264, AAC and VORBIS */
84+
/* shared by H264, THEORA, AAC, VORBIS and OPUS */
8585
static int
8686
tvh_extradata_open(TVHContext *self, AVDictionary **opts)
8787
{
8888
size_t extradata_size = 0;
8989

9090
if (!(extradata_size = pktbuf_len(self->input_gh))) {
91-
return AVERROR(EAGAIN);
91+
// most audio streams don't have input_gh
92+
return 0;
9293
}
9394
if (extradata_size >= TVH_INPUT_BUFFER_MAX_SIZE) {
9495
tvh_context_log(self, LOG_ERR, "extradata too big");

0 commit comments

Comments
 (0)