av_get_media_type_string is not available in trusty

This commit is contained in:
Isaac Connor 2016-04-28 12:56:40 -04:00
parent 337d8a748c
commit 1282e36bb2
1 changed files with 4 additions and 0 deletions

View File

@ -681,7 +681,11 @@ int FfmpegCamera::CaptureAndRecord( Image &image, bool recording, char* event_fi
}
}
} else {
#if LIBAVUTIL_VERSION_CHECK(54, 23, 0, 23, 0)
Debug( 3, "Some other stream index %d, %s", packet.stream_index, av_get_media_type_string( mFormatContext->streams[packet.stream_index]->codec->codec_type) );
#else
Debug( 3, "Some other stream index %d", packet.stream_index );
#endif
}
av_free_packet( &packet );
} // end while ! frameComplete