Skip to content

Commit

Permalink
restore some unncessarily disabled code
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Apr 14, 2024
1 parent d63f081 commit 3070a00
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/modules/avformat/consumer_avformat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1208,15 +1208,13 @@ typedef struct
size_t size;
} buffer_t;

#if !HAVE_FFMPEG_CH_LAYOUT
static int mlt_write(void *h, uint8_t *buf, int size)
{
mlt_properties properties = (mlt_properties) h;
buffer_t buffer = {buf, size};
mlt_events_fire(properties, "avformat-write", mlt_event_data_from_object(&buffer));
return 0;
}
#endif

typedef struct encode_ctx_desc
{
Expand Down Expand Up @@ -1771,7 +1769,6 @@ static void *consumer_thread(void *arg)

// Setup custom I/O if redirecting
if (mlt_properties_get_int(properties, "redirect")) {
#if !HAVE_FFMPEG_CH_LAYOUT
int buffer_size = 32768;
unsigned char *buffer = av_malloc(buffer_size);
AVIOContext *io
Expand All @@ -1792,7 +1789,6 @@ static void *consumer_thread(void *arg)
mlt_log_error(MLT_CONSUMER_SERVICE(consumer),
"failed to setup output redirection\n");
}
#endif
}
// Open the output file, if needed
else if (!(fmt->flags & AVFMT_NOFILE)) {
Expand Down

0 comments on commit 3070a00

Please sign in to comment.