Skip to content

Commit ed6eaf0

Browse files
author
Clement Champetier
committed
util: getVideo/AudioCodecsNames: don't skip codecs without encode function
1 parent 7efb612 commit ed6eaf0

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/AvTranscoder/util.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,6 @@ NamesArray getVideoCodecsNames()
144144
AVCodec* c = NULL;
145145
while( ( c = av_codec_next( c ) ) != NULL )
146146
{
147-
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT( 53, 34, 0 )
148-
if( ! c->encode )
149-
continue;
150-
#else
151-
if( ! c->encode2 )
152-
continue;
153-
#endif
154147
switch( c->type )
155148
{
156149
case AVMEDIA_TYPE_VIDEO:
@@ -175,13 +168,6 @@ NamesArray getAudioCodecsNames()
175168
AVCodec* c = NULL;
176169
while( ( c = av_codec_next( c ) ) != NULL )
177170
{
178-
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT( 53, 34, 0 )
179-
if( ! c->encode )
180-
continue;
181-
#else
182-
if( ! c->encode2 )
183-
continue;
184-
#endif
185171
switch( c->type )
186172
{
187173
case AVMEDIA_TYPE_AUDIO:

0 commit comments

Comments
 (0)